Help needed with combo box

K

kanthi

I have 3 combo boxes OEM,VehicleModel,VehicleYear ,a checkbox titled
ALL and a search button on a form.

I am writing a query to display all the attributes of the testtable of
a particular oem ,vehicle model and year as selected by the user.I am
not able to capture the value selected in the combo box can anyone help
me on the same

strSQL = "SELECT * FROM VehicleTable, TestTable WHERE
TestTable.DoorTrimPanelID = VehicleTable.DoorTrimPanelID" And
TestTable.OEM = (value selected in the combo box should go in here)

Thanks a lot
 
K

Klatuu

strSQL = "SELECT * FROM VehicleTable, TestTable WHERE
TestTable.DoorTrimPanelID = VehicleTable.DoorTrimPanelID" And
TestTable.OEM = '" & Me.cboOEM & "';"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Help needed with combo box 10
Combo box 0
Issues in access 2
can anyone help me plzz 10
problem in the code 0
Help needed with databases! 0
Help Needed in access database 0
Conditional Combo Box 3

Top