I have a combo box that is supposed to find the record for the trailer typed into the box. However if you type in the unit number, it displays the first record in the table. Here is the code in the afterupdate event of the combo box:
Private Sub cboLookupTrailer_AfterUpdate()
' Find the record that matches the control.
Dim rs As DAO.Recordset
Dim strComboVar As String
strComboVar = Me.cboLookupTrailer
If Len(cboLookupTrailer & vbNullString) <> 0 Then
Me.Filter = ""
Me.FilterOn = False
Me.Recordset.FindFirst "[New Unit #]='" & strComboVar & "'"
I fear corruption. I have tried compact and repair and also deleting the combo box and recreating it. No luck. Anyone have any ideas?
Posted by: email@example.com
|Reply via web post||•||Reply to sender||•||Reply to group||•||Start a New Topic||•||Messages in this topic (1)|