Del_Piero_3
Registered User.
- Local time
- Today, 18:39
- Joined
- Jul 20, 2004
- Messages
- 33
I have a form called “frm_TrainingLog” based on “TrainingLog” table. This form is continuous and tabular – I need to have it this way. In the header of this form I’ve created a listbox called “QuickSearch” which displays staff details i.e. StaffID, Name etc.
The mainform and the listbox are linked using the following code:
The above code does partially work and selects the right record in the mainform but it doesn’t filter out rest of the records which are not equivalent to selected StaffID from the listbox.
I could really do with someone’s help….thanks
The mainform and the listbox are linked using the following code:
Code:
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[StaffID] = " & Str(Me![QuickSearch])
Me.Bookmark = rs.Bookmark
The above code does partially work and selects the right record in the mainform but it doesn’t filter out rest of the records which are not equivalent to selected StaffID from the listbox.
I could really do with someone’s help….thanks
Attachments
Last edited: