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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Between Dates query.

Status
Not open for further replies.

serino64

Programmer
Feb 25, 2003
32
US
I having trouble with my Date Query.

When the user enters a “Beginnning Date” and “Ending Date” the query should display the required info and the dates the user specified. My query does provide me with the correct info but is not displaying the dates I specified.

FIELD: DATE
TABLE: SALES
TOTAL: FIRST
SORT DECSENDING
SHOW: CHECKED
CRITERIA: >=[Enter Beginning date for totals]

FIELD: DATE
TABLE: SALES
TOTAL: LAST
SORT DECSENDING
SHOW: CHECKED
CRITERIA: >=[Enter Ending date for totals]

The Problem with my query is when I enter a date range; lets say 1 June 99 and 1 May 03, the dates will not show up as I specified. If I enter a Date range within the current year there is no problem.

Any assistance is appreciated.
 
Try this in the critera of the date field(s):

[Enter Start Date] and [Enter End Date]
 
cheiboy, Thanks for your reply.

I took your advise and it worked. I think I am on the right track now. I added the following to the query:

Criteria: Between [Enter Start Date] And [Enter End Date]


How do I display the Start Date and End Date on my form?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top