Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query date field on the fly 1

Status
Not open for further replies.

netrusher

Technical User
Feb 13, 2005
952
US
I have a query that I want to base on a date range. When the query is ran I want to be able to enter the date range at that time. I have:

[Enter Date:] in the Criteria Field but if I enter Between or < or > an error comes up saying the expression is wrong or to complicate to evaluate.

Can anyone tell me how to run a query and input the dates wanted on the fly.

Thanks in advance.

Allen
 
You would say:

< [Enter Date: ]
Or
> [Enter Date: ]
Or
Between [Enter Start Date: ] And [Enter End Date: ]

Or better still, you would use a form.


 
Allen,

Can you post the SQL that is giving you that error message?

- Dan
 
Thanks guys, It is work with the Start and End dates.

I appreciate your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top