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

SQL Syntax to Return records with only the Current Date

Status
Not open for further replies.
Jun 29, 2001
195
US
I am generating reports where I wish only to retrieve records where the date is the current date. My field is 'datetime' format.

TIA for any help. Ashley L Rickards
SQL DBA
 
Put a WHERE clause like the following:

WHERE MyDate = Date() Terry M. Hoey
th3856@txmail.sbc.com
While I don't mind e-mail messages, please post all questions in these forums for the benefit of all members.
 
I'm getting an error 'Date' is not a recognized function name.
Any idea's? Thanks. Ashley L Rickards
SQL DBA
 
Please post your SQL statement, open your form in design view, click View-->SQL View. Maybe then we can help.

Another thing to check is that your references are correct. Go into any code window, click Tools-->References. If you see MISSING: <Description>, replace the file that is missing. This is a common error in Access, basically Access misplaces the libraries it needs to perform functions.

HTH Joe Miller
joe.miller@flotech.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top