Parameter Queries

HELP!!!! I have a form with a combo box to select "Staff ID" and a
Calendar which puts the selected date into my "Date" field. These two
fields are the criteria for my parameter query. This works fine!!! :)
the problem is that i want to use the same query with 2 different
forms...so i thought i could set the criteria as the name of the field
in the first tabel then use "Or" and put the name of the field in the
second form, but when i run the query it wants both..can anyone help??

thanks
crispydcrisp [ Do, 17 April 2008 16:19 ] [ ID #1944540 ]

Re: Parameter Queries

You may want to create/recreate the query for each instance. After
the user updates their selection change the sql or perhaps query def
to insert that value.

That saves you the problem of having to manage references to forms
that may or may not be open - always a problem

On Apr 17, 9:19=A0am, crispydcr... [at] googlemail.com wrote:
> HELP!!!! I have a form with a combo box to select "Staff ID" and a
> Calendar which puts the selected date into my "Date" field. These two
> fields are the criteria for my parameter query. This works fine!!! :)
> the problem is that i want to use the same query with 2 different
> forms...so i thought i could set the criteria as the name of the field
> in the first tabel then use "Or" and put the name of the field in the
> second form, but when i run the query it wants both..can anyone help??
timmg [ Do, 17 April 2008 16:59 ] [ ID #1944544 ]
Datenbanken » comp.databases.ms-access » Parameter Queries

Vorheriges Thema: Como obtener datos del gestor de correos predeterminado y el puerto
Nächstes Thema: Databases Crashing - Any Ideas?