P
PC
I have the typical code for doing a record look up ...
Private Sub Combo156_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[ID] = " & Str(Nz(Me![Combo156], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
The problem is if I backspace an entry in the combo box and move to another
field it considers the entry a type mismatch. The field appears blank when
this happens, but apprently the control thinks otherwise. How can I prevent
this from happening?
Thanks,
Paul
Private Sub Combo156_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[ID] = " & Str(Nz(Me![Combo156], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
The problem is if I backspace an entry in the combo box and move to another
field it considers the entry a type mismatch. The field appears blank when
this happens, but apprently the control thinks otherwise. How can I prevent
this from happening?
Thanks,
Paul