I have a form that has a control to search the table for a specific record
See code below that is on the AfterUpdate event of a Combo Box
The source row of the combo box is
Note that the rowsource is from a table
I have several prebuilt filters that the user can use.
What I need to know is how to make the rowsource based on the filter and not the table. Any ideas would be greatly appreciated.
See code below that is on the AfterUpdate event of a Combo Box
Code:
Set rs = Me.Recordset.Clone
rs.FindFirst "[ClientID] = " & Str(Nz(Me![cboName], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
Me.cboTelephone = Null
Me.cboName = Null
The source row of the combo box is
Code:
SELECT tblClients.ClientID, [LastName] & ", " & [FirstName] AS FullName
FROM tblClients
ORDER BY tblClients.LastName;
Note that the rowsource is from a table
I have several prebuilt filters that the user can use.
What I need to know is how to make the rowsource based on the filter and not the table. Any ideas would be greatly appreciated.