I have a form that I am using a list box to goto a record. in the List box I am selecting the Serial number of an item to go to a repair record for that item. the Problem I have is if that Serial number is in the table more then once. It only goes to the first record. The Primary key is a combonation of Serial number and In Date.
here is the code I am using:
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[FldSN] = '" & Me![LstSearch] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
Is there a way I can add the [FldIndate] to find the correct entry?
I am new to Access and VB so I dont really understand the
rs.FindFirst "[FldSN] = '" & Me![LstSearch] & "'"
line.
here is the code I am using:
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[FldSN] = '" & Me![LstSearch] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
Is there a way I can add the [FldIndate] to find the correct entry?
I am new to Access and VB so I dont really understand the
rs.FindFirst "[FldSN] = '" & Me![LstSearch] & "'"
line.