End User to Enter Date in Query

Joined
Jul 18, 2006
Messages
3
Reaction score
0
The query below produces the correct results, for the entire table! I need a date range selection included.

I need to know how to allow the user to enter a date, ie. [Enter yyyy-mm] and have it placed in the three date fields before the query is run so it includes the date range to selet with. Am I making sense here? This would clinch it.

The three date fielda are formated as yyyy-mm-dd 00:00:00

Any suggestions . . . ? THANKS MUCH . . .Rick



SELECT OCDownloadRES.CITY,

Count(OCDownloadRES.LISTDATE) AS CountOfLISTDATE,
Count(OCDownloadRES.PENDINGDATE) AS CountOfPENDINGDATE,
Count(OCDownloadRES.CLOSEDDATE) AS CountOfCLOSEDDATE

FROM OCDownloadRES
GROUP BY OCDownloadRES.CITY, OCDownloadRES.PROPSUBTYPE
HAVING (((OCDownloadRES.PROPSUBTYPE)=[ENTER PROP TYPE]));
 

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