Combo box and parameter query

G

Guest

I have a combo box ProjectIDBox in the Parent of a Tab form Form01 and a
query Q1_Project. The table Project has key fields ClientID and ProjectID and
the query has a parameter of [forms]![Form01]![ClientID] for selection on the
ClientID field.

In the form, I want to pass the ClientID to the query and have the query
list only the projects associated with that client.

The queried pops up with the combo box, but it always has the same Client
ID. What's up?
 
M

Marshall Barton

Stukmeister said:
I have a combo box ProjectIDBox in the Parent of a Tab form Form01 and a
query Q1_Project. The table Project has key fields ClientID and ProjectID and
the query has a parameter of [forms]![Form01]![ClientID] for selection on the
ClientID field.

In the form, I want to pass the ClientID to the query and have the query
list only the projects associated with that client.

The queried pops up with the combo box, but it always has the same Client
ID. What's up?


I have no idea what "in the Parent of a Tab form" means. If
you are trying to synchronize a subform with a control on a
main form, you should use the subform control's Link
Master/Child Fields properties instead of messing with the
query.
 

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

Top