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  

Listing dates greater than 6 months from today



 
 
Thread Tools Display Modes
  #1  
Old November 27th, 2006, 05:00 PM posted to microsoft.public.access.queries
Danielle
external usenet poster
 
Posts: 113
Default Listing dates greater than 6 months from today

I have written criteria as follows....[enter date greater than 6 months]....
when run I enter a date 6 months from today and it shows the records I need.
I would like this to be simplified....but can't figure out how. What I would
like is when I run the query it automatically calculates and shows only those
records that are greater than 6 months from today - rather than my inputting
a date param each time. The field is a standard mm/dd/yyyy field. I am not
familiar with using the sql in the background...but can try if that is the
assistance provided. If this does not make sense let me know--- thank you in
advance for your help!
  #2  
Old November 27th, 2006, 05:08 PM posted to microsoft.public.access.queries
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Listing dates greater than 6 months from today

Use one of these as your criteria --
Date()-180
OR
DateAdd("m", -6, Date())

These are 180 days or 6 months.

"Danielle" wrote:

I have written criteria as follows....[enter date greater than 6 months]....
when run I enter a date 6 months from today and it shows the records I need.
I would like this to be simplified....but can't figure out how. What I would
like is when I run the query it automatically calculates and shows only those
records that are greater than 6 months from today - rather than my inputting
a date param each time. The field is a standard mm/dd/yyyy field. I am not
familiar with using the sql in the background...but can try if that is the
assistance provided. If this does not make sense let me know--- thank you in
advance for your help!

  #3  
Old November 27th, 2006, 05:10 PM posted to microsoft.public.access.queries
Allen Browne
external usenet poster
 
Posts: 11,706
Default Listing dates greater than 6 months from today

Try:
DateAdd("m", 6, Date())


Or, if you meant more than 6 months ago:
DateAdd("m", -6, Date())

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Danielle" wrote in message
...
I have written criteria as follows....[enter date greater than 6
months]....
when run I enter a date 6 months from today and it shows the records I
need.
I would like this to be simplified....but can't figure out how. What I
would
like is when I run the query it automatically calculates and shows only
those
records that are greater than 6 months from today - rather than my
inputting
a date param each time. The field is a standard mm/dd/yyyy field. I am
not
familiar with using the sql in the background...but can try if that is the
assistance provided. If this does not make sense let me know--- thank you
in
advance for your help!



  #4  
Old November 27th, 2006, 05:16 PM posted to microsoft.public.access.queries
Danielle
external usenet poster
 
Posts: 113
Default Listing dates greater than 6 months from today

Perfect!!! Many thanks!!


"KARL DEWEY" wrote:

Use one of these as your criteria --
Date()-180
OR
DateAdd("m", -6, Date())

These are 180 days or 6 months.

"Danielle" wrote:

I have written criteria as follows....[enter date greater than 6 months]....
when run I enter a date 6 months from today and it shows the records I need.
I would like this to be simplified....but can't figure out how. What I would
like is when I run the query it automatically calculates and shows only those
records that are greater than 6 months from today - rather than my inputting
a date param each time. The field is a standard mm/dd/yyyy field. I am not
familiar with using the sql in the background...but can try if that is the
assistance provided. If this does not make sense let me know--- thank you in
advance for your help!

 




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 04:22 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.