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

date expressions 1

Status
Not open for further replies.

julius1

Technical User
Oct 31, 2002
142
US
Hello, I am putting together a data base and 1 of the queries I am trying to pull is "getting a list of total entries made into a field the day prior" to when I am running the report. For example. There are a total of 30 orders entered on 10-30. I am trying on 10-31 to see how many came in, but I need it to be so that when ever I pull the report on any day it pulls up what was entered the day prior with out me having to go into the query design and modify the date. Can someone help me on this one. I am sure it's simple, but I can not find this type of expression any where that I look.
 
Hi there,

try using the Date() function:

SELECT Table1.myDate
FROM Table1
WHERE Table1.myDate<Date()

Or, in the desgin view of the query, add the following to the criteria of your date field

<Date()


Hope this helps...
DanJR
 
Dan, thank you very much. This is exactly what I have been looking for!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top