A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

=(Now()-1)



 
 
Thread Tools Display Modes
  #1  
Old August 25th, 2008, 09:44 PM posted to microsoft.public.access.queries
Novice2000
external usenet poster
 
Posts: 271
Default =(Now()-1)

What does this mean in criteria for date? Thanks
  #2  
Old August 25th, 2008, 09:56 PM posted to microsoft.public.access.queries
fredg
external usenet poster
 
Posts: 4,386
Default =(Now()-1)

On Mon, 25 Aug 2008 13:44:07 -0700, Novice2000 wrote:

What does this mean in criteria for date? Thanks


It means the query should return those records whose date field has a
date value greater than or equal to yesterday at whatever time of day
you are running the query. In other words, if you run the query today
(8/25/2008) at 1:50 PM, it will return all record between 8/24/2008
1:50 PM on into the future. Records with a time value of 1:49 PM and
earlier will not be returned.

Most often, the time value is not a part of a date entry, so it's best
to use Date() instead of Now().
= Date()-1

will return all return all records from yesterday on into the future,
regardless of the time the query is run.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:08 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.