Querying on Now()

M

mon

I want to create a query which shows the records entered
over the last day. I have a field with default Now().
However I cannot manage the correct syntax for this.
Thanks
Mon
 
S

Steve Schapel

Mon,

Use either the Int() function or the DateValue() function, for
example...
DateEntered: Int([YourNowField])
.... and then put in the criteria Date()

- Steve Schapel, Microsoft Access MVP
 
M

mon

Thanks, but I am a dill. I have an upload field on each
table. If the records have just been entered then they
haven't been sent, so that field can be utilised. Thanks
for your suggestions, Steve and Gary. They have been
copied to my help file for future reference.
Thanks mon
-----Original Message-----
"WHERE [YourDateField] > Date() -1"

Gary Miller
Sisters, OR

I want to create a query which shows the records entered
over the last day. I have a field with default Now().
However I cannot manage the correct syntax for this.
Thanks
Mon


.
 

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