dbTalk Databases Forums  

Access 2000 Date question

comp.database.ms-access comp.database.ms-access


Discuss Access 2000 Date question in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
TechJosh
 
Posts: n/a

Default Access 2000 Date question - 10-14-2003 , 08:38 AM






I'm a bit of an Access newbie, so bear with me. I have a database
I've created with a query that calculates the date of next service
based on a 60-day rotation. My boss wants me to come up with a query
that he can run to generate a report that will calculate (based on the
previous query), which items will need service within the next 7 days,
or within a specified week range (i.e. he types in the start and end
dates). I'm fuzzy about how the Date(), CDate() and CVDate()
functions work and I'm not sure which to use and how. Any help would
be greatly appreciated.

Reply With Quote
  #2  
Old   
Ray
 
Posts: n/a

Default Re: Access 2000 Date question - 10-15-2003 , 07:29 AM






joshd (AT) abswebb (DOT) net (TechJosh) wrote in message news:<ca9247b9.0310140538.1006339c (AT) posting (DOT) google.com>...
Quote:
I'm a bit of an Access newbie, so bear with me. I have a database
I've created with a query that calculates the date of next service
based on a 60-day rotation. My boss wants me to come up with a query
that he can run to generate a report that will calculate (based on the
previous query), which items will need service within the next 7 days,
or within a specified week range (i.e. he types in the start and end
dates). I'm fuzzy about how the Date(), CDate() and CVDate()
functions work and I'm not sure which to use and how. Any help would
be greatly appreciated.
Hello TechJosh,

As a suggestion, open up a new query and use the other one
as your source. Make sure your date field is in the QBE grid
besides all of the required fields.

Next, put the following in the criteria row for the date field:

Date()+7

This will get you records between the current date and 7 day later.

Regards,

Ray


Reply With Quote
  #3  
Old   
John
 
Posts: n/a

Default Re: Access 2000 Date question - 10-28-2003 , 03:33 AM



also take a look at datediff()

-john

raycait (AT) excite (DOT) com (Ray) wrote in message news:<20ba9f4a.0310150429.21a098b9 (AT) posting (DOT) google.com>...
Quote:
joshd (AT) abswebb (DOT) net (TechJosh) wrote in message news:<ca9247b9.0310140538.1006339c (AT) posting (DOT) google.com>...
I'm a bit of an Access newbie, so bear with me. I have a database
I've created with a query that calculates the date of next service
based on a 60-day rotation. My boss wants me to come up with a query
that he can run to generate a report that will calculate (based on the
previous query), which items will need service within the next 7 days,
or within a specified week range (i.e. he types in the start and end
dates). I'm fuzzy about how the Date(), CDate() and CVDate()
functions work and I'm not sure which to use and how. Any help would
be greatly appreciated.

Hello TechJosh,

As a suggestion, open up a new query and use the other one
as your source. Make sure your date field is in the QBE grid
besides all of the required fields.

Next, put the following in the criteria row for the date field:

Date()+7

This will get you records between the current date and 7 day later.

Regards,

Ray

Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.