Newb Query Question

  • Thread starter Thread starter Cardinal
  • Start date Start date
C

Cardinal

I am using Access 2003. I am trying to create a query that returns
only records for todays date. I've tried now() and date()
unsuccessfully. Can someone give me hint on what to try? Thank you.
 
Dear friend,

Does your table has a date field which is automatically recorded using the
current date or time?

If there is such a field and the recording date is recorded then use (in
your query) the critiria under tha field =date().

If there is such a field and the recording date and the time is recorded then
using an empty column in your query type:

MyDate: CDate(Int([YourDateField])) and use the same criteria as mentioned
above.

GeorgeCY


Ο χÏήστης "Cardinal" έγγÏαψε:
 
Sounds as if your date field also contains a time (other than midnight). So
to get any matches you are going to need to get the range of dates plus times
for the current date.

Field: [Recording Date]
Criteria: >=Date and < DateAdd("d",1, Date())

John Spencer
Access MVP 2002-2005, 2007-2008
The Hilltop Institute
University of Maryland Baltimore County
Dear friend,

Does your table has a date field which is automatically recorded using the
current date or time?

If there is such a field and the recording date is recorded then use (in
your query) the critiria under tha field =date().

If there is such a field and the recording date and the time is recorded then
using an empty column in your query type:

MyDate: CDate(Int([YourDateField])) and use the same criteria as mentioned
above.

GeorgeCY


Ο χÏήστης "Cardinal" έγγÏαψε:
I am using Access 2003. I am trying to create a query that returns
only records for todays date. I've tried now() and date()
unsuccessfully. Can someone give me hint on what to try? Thank you.
 

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

Similar Threads

access 2007 accountancy application 3
Error on Query with DateSerial() 0
Query for a specific Date only 4
Access Query problem 1
query set up question 6
Access Property sheet data missing also syntax 0
Date Field Null Values 3
Report based on Query 4

Back
Top