Help.Chris
Registered User.
- Local time
- Today, 14:10
- Joined
- Oct 11, 2000
- Messages
- 43
I am trying to use three unbound fields to filter a form. I Have the fields in the form header, and the rest of the form is bound to the necessary fields. I can us bookmarks and Findfirst to search on one fields using the code below.
Dim rst As DAO.Recordset
Set rst = Me.RecordsetClone
rst.FindFirst "[Operator_Name] = " & adhHandleQuotes(Combo21, adhcQuote)
If rst.NoMatch Then
MsgBox "Operator Has No Campaigns Entered!"
Else
Me.Bookmark = rst.Bookmark
End If
rst.Close
Set rst = Nothing
I have to use DAO as I am using an MDB file, the problem is that findfirst only searches by on fields, I need to search by three.
Please could someone assist me in implementing the additional code. My Access knowledge is good, but my VB knowledge isn't. So Code would be useful.
Thank for you help everyone
Dim rst As DAO.Recordset
Set rst = Me.RecordsetClone
rst.FindFirst "[Operator_Name] = " & adhHandleQuotes(Combo21, adhcQuote)
If rst.NoMatch Then
MsgBox "Operator Has No Campaigns Entered!"
Else
Me.Bookmark = rst.Bookmark
End If
rst.Close
Set rst = Nothing
I have to use DAO as I am using an MDB file, the problem is that findfirst only searches by on fields, I need to search by three.
Please could someone assist me in implementing the additional code. My Access knowledge is good, but my VB knowledge isn't. So Code would be useful.
Thank for you help everyone