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  

PREVIOUS MONTH TIME FRAME IN QUERY?



 
 
Thread Tools Display Modes
  #1  
Old June 11th, 2004, 10:07 PM
Ned Beck
external usenet poster
 
Posts: n/a
Default PREVIOUS MONTH TIME FRAME IN QUERY?

Hi ,

I am trying to make querry which should give me the results from the whole
previous month no mater when I am running that querry.in the current month.
So I need the way to avoid typing date time frame for the previous month.
Please help. Thank You in advance.

Nedzad



  #2  
Old June 11th, 2004, 11:54 PM
Van T. Dinh
external usenet poster
 
Posts: n/a
Default PREVIOUS MONTH TIME FRAME IN QUERY?

....
WHERE [DateField]
BETWEEN DateSerial( Year( Date() ), Month( Date() ) - 1, 1 )
AND DateSerial( Year( Date() ), Month( Date() ), 0 )

--
HTH
Van T. Dinh
MVP (Access)



"Ned Beck" wrote in message
...
Hi ,

I am trying to make querry which should give me the results from the whole
previous month no mater when I am running that querry.in the current

month.
So I need the way to avoid typing date time frame for the previous month.
Please help. Thank You in advance.

Nedzad





  #3  
Old June 12th, 2004, 12:18 AM
Ned Beck
external usenet poster
 
Posts: n/a
Default PREVIOUS MONTH TIME FRAME IN QUERY?

WORKS PERFECT!
THANK YOU!
"Van T. Dinh" wrote in message
...
...
WHERE [DateField]
BETWEEN DateSerial( Year( Date() ), Month( Date() ) - 1, 1 )
AND DateSerial( Year( Date() ), Month( Date() ), 0 )

--
HTH
Van T. Dinh
MVP (Access)



"Ned Beck" wrote in message
...
Hi ,

I am trying to make querry which should give me the results from the

whole
previous month no mater when I am running that querry.in the current

month.
So I need the way to avoid typing date time frame for the previous

month.
Please help. Thank You in advance.

Nedzad







 




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 03:05 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.