Clayhead22
Registered User.
- Local time
- Today, 19:31
- Joined
- Feb 22, 2015
- Messages
- 36
Hi Please Help
I have a multiple item form with search boxes. I want to be able to type in one of the boxes OR 2,3,4 of the boxes. click search and the form will filter based on the criteria.
This is what i have so far.
I have a multiple item form with search boxes. I want to be able to type in one of the boxes OR 2,3,4 of the boxes. click search and the form will filter based on the criteria.
This is what i have so far.
Code:
Private Sub Search_Accounts_Click()
Me.Filter = "Account_ID= " & Me.Search_Account_ID & " AND First_Name= " & Me.Search_First_Name & " AND Last_Name= " & Me.Search_Last_Name & " AND Telephone= " & Me.Search_Telephone & " AND Mobile= " & Me.Search_Mobile & " AND Email= " & Me.Search_Email & " AND Date_of_Birth= " & Me.Search_Date_of_Birth
Me.FilterOn = True
End Sub