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  

How to calculate a period of time



 
 
Thread Tools Display Modes
  #1  
Old May 27th, 2004, 12:22 PM
AmandaP
external usenet poster
 
Posts: n/a
Default How to calculate a period of time

Hi, I really need some help on this one, I cannot seem to
be able to get it right.

I have this query which returns dates when an inspection
is due called [InspectionDue]. I have put this criteria
beneath it: =Date()+30. The only problem is that it
returns all dates after today's date and all I really want
is any date equal or after today's date within the next 30
days, not beyond the 30 days limit. Is there a way to do
this right?

Please help.
Thanks,

  #2  
Old May 27th, 2004, 12:35 PM
Roger Carlson
external usenet poster
 
Posts: n/a
Default How to calculate a period of time

BETWEEN Date() AND Date()+30

--
--Roger Carlson
www.rogersaccesslibrary.com
Reply to: Roger dot Carlson at Spectrum-Health dot Org

"AmandaP" wrote in message
...
Hi, I really need some help on this one, I cannot seem to
be able to get it right.

I have this query which returns dates when an inspection
is due called [InspectionDue]. I have put this criteria
beneath it: =Date()+30. The only problem is that it
returns all dates after today's date and all I really want
is any date equal or after today's date within the next 30
days, not beyond the 30 days limit. Is there a way to do
this right?

Please help.
Thanks,



  #3  
Old May 27th, 2004, 12:39 PM
AmandaP
external usenet poster
 
Posts: n/a
Default How to calculate a period of time

Thanks Roger,

It worked!
Brilliant.

-----Original Message-----
BETWEEN Date() AND Date()+30

--
--Roger Carlson
www.rogersaccesslibrary.com
Reply to: Roger dot Carlson at Spectrum-Health dot Org

"AmandaP" wrote in

message
...
Hi, I really need some help on this one, I cannot seem

to
be able to get it right.

I have this query which returns dates when an inspection
is due called [InspectionDue]. I have put this criteria
beneath it: =Date()+30. The only problem is that it
returns all dates after today's date and all I really

want
is any date equal or after today's date within the next

30
days, not beyond the 30 days limit. Is there a way to do
this right?

Please help.
Thanks,



.

 




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 07:01 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.