I’m baffled by a comb box problem. I have form on which I created 6 combo boxes (using the combo box wizard) to find records on the form. All 6 of the combo boxes worked as expected when I click on them using the computer I used to create the form. The Access vs. on this computer is 2002. It also worked fine on another computer also running 2002. But when I pull up this form on any other computer running Access vs. 2003 four of the combo boxes work fine and the other two do not. I’ve recreated the combo boxes on a computer running vs. 2003 but get the same results. Any help on this would be much appreciated.
The name of the form is frmVehicles, the record source is qryVehiclesEntry
One of the combo boxes that works is called, cboFindByVehicleID, the row source is, SELECT [qryVehiclesEntry].[VehicleID] FROM [qryVehiclesEntry]
The code on the after update event is:
Private Sub cboFindByVehicleID_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[VehicleID] = " & Str(Nz(Me![cboFindByVehicleID], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
One of the combo boxes that does not work is called, cboFindByLicenseNumber, the row source is, SELECT [qryVehiclesEntry].[LicenseNumber] FROM [qryVehiclesEntry]
The code on the after update event is:
Private Sub cboFindByLicenseNumber_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[LicenseNumber] = '" & Me![cboFindByLicenseNumber] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
The name of the form is frmVehicles, the record source is qryVehiclesEntry
One of the combo boxes that works is called, cboFindByVehicleID, the row source is, SELECT [qryVehiclesEntry].[VehicleID] FROM [qryVehiclesEntry]
The code on the after update event is:
Private Sub cboFindByVehicleID_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[VehicleID] = " & Str(Nz(Me![cboFindByVehicleID], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
One of the combo boxes that does not work is called, cboFindByLicenseNumber, the row source is, SELECT [qryVehiclesEntry].[LicenseNumber] FROM [qryVehiclesEntry]
The code on the after update event is:
Private Sub cboFindByLicenseNumber_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[LicenseNumber] = '" & Me![cboFindByLicenseNumber] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub