Hi,
If it is an action query (Append, update, insert) you can use,
in the code of the AfterUpdate Event of the combo box, as example:
DoCmd.RunSQL "yourSavedQuery"
where your saved query refers to the parameter as
FORMS!YourFormName!YourComboBoxName, such as, in SQL view:
UPDATE myTable SET myField=22 WHERE
otherField=FORMS!myFormName!MyComboName
If it is a select query, use
DoCmd.OpenQuery "yourSavedQuery"
as example. Sure, it may be use as RowSource or even as RecordSource of
another form.
Hoping it may help,
Vanderghast, Access MVP
Rawley said:
I opened the combo box of the form, and found what I think is the Change
event of the combo box that you are talking about. It was labeled 'On
Change' and in the pulldown, had a [Event Procedure] listed. I don't
understand the next party, with running the query through the code. Do I
need to write in VBA? If so, can you give me any pointers? Also, I have a
table with the employees listed, not a query. Do I need to make some type
of a query that just lists all the employees???