If you will always filter from the ComboBox as it appears you do from the code above you could create the query to filter against the control itslelf. While this limits your options it's extremely simple if this is the extent of what you need to do. The query would look something like this, (Replace Fields and table names to fit your situation....
SELECT tblCustomer.CustomerID
FROM tblCustomer
WHERE tblCustomer.CustomerID=[Fo
Main Topics
Browse All Topics





by: ldunscombePosted on 2008-01-31 at 05:31:11ID: 20786294
You can set the criteria row of the desired field in your query to use a value from your form.
eg
Name field in query.
criteria row of name field in query
= forms!formname.controlname
Leigh