G
Guest
Am trying to get form to show a record the user does a search for,
strSearch is a text variable of (VehLicence = "cab123") VehLicence is
a text field in tblCase_Vehicle. However nothing is happening. Any
help would be appreciated.
Dim cnn1 As ADODB.Connection
Set cnn1 = CurrentProject.Connection
Dim rsveh As New ADODB.Recordset
rsveh.ActiveConnection = cnn1
rsveh.CursorType = adOpenDynamic
rsveh.Open "SELECT * FROM tblCase_VehicleVehicle"
rsveh.MoveFirst
rsveh.Find strSearch
strSearch is a text variable of (VehLicence = "cab123") VehLicence is
a text field in tblCase_Vehicle. However nothing is happening. Any
help would be appreciated.
Dim cnn1 As ADODB.Connection
Set cnn1 = CurrentProject.Connection
Dim rsveh As New ADODB.Recordset
rsveh.ActiveConnection = cnn1
rsveh.CursorType = adOpenDynamic
rsveh.Open "SELECT * FROM tblCase_VehicleVehicle"
rsveh.MoveFirst
rsveh.Find strSearch