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  dBforums > PC based Database Applications > Microsoft Access > Date Range Where Clause

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-31-11, 19:23
crosseydlobster crosseydlobster is offline
Registered User
 
Join Date: Apr 2011
Posts: 30
Date Range Where Clause

I have a combobox that shows dates for upcoming events. I would like to use a where clause so that no dates older than a month from now will be displayed. Can anyone offer a link or suggestion on how I need to formulate this statement. I have been doing research and have found nothing to fit my situation. thanks
Reply With Quote
  #2 (permalink)  
Old 05-31-11, 21:14
eremija eremija is offline
Registered User
 
Join Date: Nov 2010
Posts: 61
WHERE (((Table.DateOfEvent)>Date()-30));
__________________
skype: zoran.eremija
www.it4you.com.au
Reply With Quote
  #3 (permalink)  
Old 06-01-11, 12:40
Sam Landy Sam Landy is offline
Registered User
 
Join Date: May 2004
Location: New York State
Posts: 931
I think you mean
Quote:
WHERE (((Table.DateOfEvent)>(Date()+30)))
Sam
Reply With Quote
  #4 (permalink)  
Old 06-02-11, 11:55
crosseydlobster crosseydlobster is offline
Registered User
 
Join Date: Apr 2011
Posts: 30
Thanks it works like a charm. I knew it would be simple... just wasn't so sure about myself on this one. BTW the following is the one that did it for me. Thank you both.

WHERE (((Table.DateOfEvent)>Date()-30));
Reply With Quote
Reply

Tags
combo box, date range, paramater, where clause

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On