Va. Code Ann. § 29.1-738.5
C. Upon such conviction, the court shall impose the sentence authorized. Upon a finding that a person so convicted is eligible for participation in an alcohol rehabilitation program, the court shall enter the conviction on the warrant, and shall note that the person so convicted has been referred to a program. If the court finds that a person is not eligible for a program or subsequently that the person has violated, without good cause, any of the conditions set forth by the court in entering the program, the court shall dispose of the case as if no program had been entered. Appeals from any such disposition shall be allowed as provided by law.
The court shall have jurisdiction over any person entering a program under the provisions of this section until such time as the case has been disposed of by either successful completion of the program, or final imposition of sentence upon ineligibility or violation of a condition imposed by the court, whichever occurs first.
1989, c. 726.