Using today's date in a query

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a table that includes dates in a "DATE" field. How do I design a
query to pull records, where the date in the "DATE" field would equal today's
date? Thanks.
 
Maureen said:
I have a table that includes dates in a "DATE" field. How do I
design a query to pull records, where the date in the "DATE" field
would equal today's date? Thanks.

First, change the name of the field to "RecordDate" or similar as "Date" is
a reserved word (name of a function). Then use...

SELECT *
FROM TableName
WHERE RecordDate = Date()
 
Thanks for your help and quick response.

Rick Brandt said:
First, change the name of the field to "RecordDate" or similar as "Date" is
a reserved word (name of a function). Then use...

SELECT *
FROM TableName
WHERE RecordDate = Date()
 
Back
Top