criteria dates

M

mon

Hi, I would like to make a query where the user puts in
beginning date and end dates for the query
Thanks
Monika
 
S

Sambantham Kuppusamy

Monica,

In the query put some user variables in the where (Criteria) like this:
Between [form1]!Date1 and [form1]!Date2

So when the user runs the query it will pop up 2 dialog boxes for date1 and
date2. These will be filtered and you will get only required rows.


SAM
 
F

Fredg

Monika,

If you are not using a form to enter query parameters, then,
In the Date field's criteria line, write:
Between [Start Date] and [End Date]

When the query is run, a parameter box will ask
for each date.

--
Fred

Please reply only to this newsgroup.
I do not reply to personal e-mail.
Remove nothing from my address
 
F

Fredg

Change the query criteria to:

Between forms!FormName!StartControlName and forms!FormName!EndControlName

The form must be open when the query is run.

--
Fred

Please reply only to this newsgroup.
I do not reply to personal e-mail.
Remove nothing from my address
 

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