Using today's date in a query

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.
 
R

Rick Brandt

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()
 
G

Guest

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()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top