ok im using this code to select a record from a list box so a user can find it faster this works ok how ever after i run a ammend quary on over 1700 records none of them will load (the ammend ones the others are fine) i get a blank msg box, is this due to the code?
any help would be great cus this has been dring me mad for weeks lol
Code:
Private Sub lstCustomer_AfterUpdate()
Dim rs As DAO.Recordset
If Not IsNull(Me.lstCustomer) Then
'Save before move.
If Me.Dirty Then
Me.Dirty = False
End If
'Search in the clone set.
Set rs = Me.RecordsetClone
rs.FindFirst "[tblCustomer]![ID] = " & Me.lstCustomer
If rs.NoMatch Then
MsgBox (Err.Description)
Else
'Display the found record in the form.
Me.Bookmark = rs.Bookmark
End If
Set rs = Nothing
End If
Me.lstCustomer.Requery
End Sub
any help would be great cus this has been dring me mad for weeks lol