Query Criteria from a SubForm

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I have a query that get the criteria from a SubForm in a Tab Control
belonging to the Main Form. I am using the expresion:

[Forms]![MainForm_name]![PageName].[Forms]![SubForm_Name]![Controlbox]

When I run the query with the subform alone open it works fine, but when I
try to run the query with the Main Form open , I got asked to enter the
parameters manually.

I tried already entering the criteria fields in the Query Parameters but
still it did not work.

Please any help will be very appreciated.
 
Sorlenny,
Tab control has no impact on the syntax. You sould use:

[Forms]![MainForm_name]![SubForm_Name].Form![Controlbox]

Regard,
 

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

Back
Top