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 » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

dates



 
 
Thread Tools Display Modes
  #1  
Old May 11th, 2004, 11:12 PM
external usenet poster
 
Posts: n/a
Default dates

hi everyone!
does anyone know how to filter a recordset for a specific date.
for example. i keep some dates in an access database of cpr training. i am
making a repeating region listing the people whose cpr license will expire
in 30 days. well how do you construct that kind of sql sentence
SELECT*
FROM table
WHERE cprduedate = what
i'm completely lost! i keep dates in form mm/dd/yyyy and am using asp.
thanks a bunch in advance


  #2  
Old May 11th, 2004, 11:36 PM
Adrian Jansen
external usenet poster
 
Posts: n/a
Default dates

You have to delimit the date string with # signs:

WHERE cprduedate = #mm/dd/yyyy#

--
Regards,

Adrian Jansen
J & K MicroSystems
Microcomputer solutions for industrial control
wrote in message
hlink.net...
hi everyone!
does anyone know how to filter a recordset for a specific date.
for example. i keep some dates in an access database of cpr training. i am
making a repeating region listing the people whose cpr license will expire
in 30 days. well how do you construct that kind of sql sentence
SELECT*
FROM table
WHERE cprduedate = what
i'm completely lost! i keep dates in form mm/dd/yyyy and am using asp.
thanks a bunch in advance




  #3  
Old May 12th, 2004, 01:56 AM
Grant
external usenet poster
 
Posts: n/a
Default dates

Don't know if this will work in asp though

WHERE (DateDiff("d",Now(),[cprduedate]))30

Regards
Grant


wrote in message
hlink.net...
hi everyone!
does anyone know how to filter a recordset for a specific date.
for example. i keep some dates in an access database of cpr training. i am
making a repeating region listing the people whose cpr license will expire
in 30 days. well how do you construct that kind of sql sentence
SELECT*
FROM table
WHERE cprduedate = what
i'm completely lost! i keep dates in form mm/dd/yyyy and am using asp.
thanks a bunch in advance




 




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 09:57 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.