asking user for dates

H

Haroon

hi

i want to create a query which asks user for start date and end date
the start date is like 1st apr 2009
and end date is like 30 apr 2009

what shall i put in the criteria box?
i have [enter start date] for the start date column
and [enter end date] for the end date column

it dont work

anyone know to show this

thanks in advance.
 
T

Tom van Stiphout

On Thu, 2 Apr 2009 03:15:02 -0700, Haroon

That is indeed how this is done. And you set the parameters to be of
datetime type. Here is an example from Northwind:
PARAMETERS [Give start date:] DateTime, [Give end date:] DateTime;
SELECT Orders.*
FROM Orders
WHERE (((Orders.[Order Date]) Between [Give start date:] And [Give end
date:]));

-Tom.
Microsoft Access MVP
 

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