Geordie2008
Registered User.
- Local time
- Today, 06:00
- Joined
- Mar 25, 2008
- Messages
- 177
Hello's
I have a form with 2 unbound text boxes.
First Name (txt_First_Name)
Last Name (txt_Last_Name)
I have a combo box on the same form which I would like to be filtered by the values entered into the 2 unbound boxes.
So
:
First Name: M
Last Name: Jones
Should populate the combo box with:
Mark Jones
Michael Jones
etc.
I used the following on the "row source" of the comboBox properties:
SELECT Tbl_MAIN_Staff_Details.ID, Tbl_MAIN_Staff_Details.Last_Name, Tbl_MAIN_Staff_Details.First_Name FROM Tbl_MAIN_Staff_Details ORDER BY [Last_Name] WHERE ((Tbl_MAIN_Staff_Details.Last_Name like me.txt_Last_Name AND Tbl_MAIN_Staff_Details.First_Name like me.txt_First_Name
Can someone advise what Im doing wrong? Tis not happening for me!
Thanks,
Mandy
I have a form with 2 unbound text boxes.
First Name (txt_First_Name)
Last Name (txt_Last_Name)
I have a combo box on the same form which I would like to be filtered by the values entered into the 2 unbound boxes.
So
:
First Name: M
Last Name: Jones
Should populate the combo box with:
Mark Jones
Michael Jones
etc.
I used the following on the "row source" of the comboBox properties:
SELECT Tbl_MAIN_Staff_Details.ID, Tbl_MAIN_Staff_Details.Last_Name, Tbl_MAIN_Staff_Details.First_Name FROM Tbl_MAIN_Staff_Details ORDER BY [Last_Name] WHERE ((Tbl_MAIN_Staff_Details.Last_Name like me.txt_Last_Name AND Tbl_MAIN_Staff_Details.First_Name like me.txt_First_Name
Can someone advise what Im doing wrong? Tis not happening for me!
Thanks,
Mandy