Use query with parameters as datasource for subform

J

julius.fuchs

Hi

I have a subform which gets its data from a query. This query uses
parameters I want to be able to modify via textboxes on the main form.
The user should enter some values and then press a button which
updates the subform.
How can I do that?

Thx in advance
 
J

John W. Vinson

Hi

I have a subform which gets its data from a query. This query uses
parameters I want to be able to modify via textboxes on the main form.
The user should enter some values and then press a button which
updates the subform.
How can I do that?

Thx in advance

Your paramters should reference the form directly:

=[Forms]![YourFormName]![YourTextboxName]

Alternatively, you could use the name of the textbox (or textboxes, separated
by semicolons) as the Master Link Field property of the subform, and the
corresponding fields in the subform's recordsource as the Child Link Fields.
 

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