Query is not picking up data from subform

J

Jen

Hi! I have a query that needs to pick up a parameter from
a subform. I have the criteria written as follows:

[Forms]![MainForm]![SubForm].[Form]![ListBox]

Could someone please explain why this isn't working?

Thanks,
Jen
 
R

Rick Brandt

Jen said:
Hi! I have a query that needs to pick up a parameter from
a subform. I have the criteria written as follows:

[Forms]![MainForm]![SubForm].[Form]![ListBox]

Could someone please explain why this isn't working?

That syntax actually needs to have the name of the subform *control*, which is not
necessarily the same as the actual form embedded inside it. The names are "usually"
the same, but not always.

Also...ListBox isn't Multiselect is it? If it is it will never have a value.
 
J

Jen

-----Original Message-----
Jen said:
Hi! I have a query that needs to pick up a parameter from
a subform. I have the criteria written as follows:

[Forms]![MainForm]![SubForm].[Form]![ListBox]

Could someone please explain why this isn't working?

That syntax actually needs to have the name of the
subform *control*, which is not
necessarily the same as the actual form embedded inside it. The names are "usually"
the same, but not always.

Also...ListBox isn't Multiselect is it? If it is it will never have a value.


I do have the name as the subform control and my list box
is not a multiselect. What else could be the problem?

Thanks,
Jen
 

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