Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

One prompt for Four Queries

0 views
Skip to first unread message

Wendelin

unread,
Jan 6, 2010, 3:46:02 PM1/6/10
to
I have four queries that are used as subreports in a summary report.

All four queries use the same prompt (for the same field): [Enter Patient
Contact ID]

How do I get only one prompt so that the keyed in patient contact id is used
for all four queries?

XPS35

unread,
Jan 6, 2010, 3:55:16 PM1/6/10
to
=?Utf-8?B?V2VuZGVsaW4=?= wrote:

Make a form with a field or combobox to enter the ContactID.
Refer to the field in the criteria section of the queries like this:
=forms!FormName!FieldName

Add a button to the form to open the report.

--
Groeten,

Peter
http://access.xps350.com
http://foto.xps350.com

Jerry Whittle

unread,
Jan 6, 2010, 4:11:01 PM1/6/10
to
Enter it in a text box in a form.

In the criteria of the queries put something like this:

[Forms]![FormName]![TextBoxName]

You could put a command button on the form to run a macro that runs the
queries.

The form must stay open for this to work; however, it can be minimized or
invisible.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.

SteveD

unread,
Jan 6, 2010, 4:15:01 PM1/6/10
to
One way is to have the queries reference a field(s) on a form. The visible
property of this field may be either true or false pending if you want it
displayed or not.

You can also do this if your query/report contains multiple criteria
elements, for example: FiscalYear, Division, Dept, etc.

In the criteria it would look something like
[forms]![frm_ReportMenu]![FiscalYear]

Give it a try,

SteveD

0 new messages