DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   Computer Science and Software Design (http://www.daniweb.com/forums/forum14.html)
-   -   microsoft access simple date query (http://www.daniweb.com/forums/thread29527.html)

duubz Aug 1st, 2005 8:07 am
microsoft access simple date query
 
Hi, I'm currently creating a database and need to create a query to show all the records that the warrenty date expires within the next week. i know this is a simple query as I did it when doing my A-Level in computer studies however I was working in a pub for the last year and am out of practise. So far I have simply put the criteria in the warrenty expiration date as ">=Now()+7" however that seem to be displaying the records with a date between now and 7 years from now. I hope someone can help me with this before I do too much damage to myself banging my head against my desk. thanks.

mrnath Nov 14th, 2005 1:04 pm
Re: microsoft access simple date query
 
>=("d",7,int(now())) or >=("w",1,int(now()))

Had same problem.. kinda :P

ingrid kalnins May 9th, 2006 6:56 am
Re: microsoft access simple date query
 
Quote:

Originally Posted by duubz
Hi, I'm currently creating a database and need to create a query to show all the records that the warrenty date expires within the next week. i know this is a simple query as I did it when doing my A-Level in computer studies however I was working in a pub for the last year and am out of practise. So far I have simply put the criteria in the warrenty expiration date as ">=Now()+7" however that seem to be displaying the records with a date between now and 7 years from now. I hope someone can help me with this before I do too much damage to myself banging my head against my desk. thanks.

If you find out, can you help me work out the query for all records with a deadline date before a certain date.


All times are GMT -4. The time now is 10:32 pm.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC