Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding Days

Status
Not open for further replies.

szeiss

Programmer
Apr 5, 2000
137
US
This seems very simple, but I can't seem to get it to work. I have a Oracle DateTime field called {ECAM_SCHEDULE.EVENT_DATE_TIME}. I'm wanting to pull all records for the next 45 days using the CurrentDate as the starting point. Therefore, I want all records from the current date thru the next 45 days that have a EVENT_DATE_TIME occuring within that time period. Can someone please assist.

Thanks,
Sherry
 
Try using the DateAdd (, , ) method..

As Far as I can tell if you do something like
DateAdd (dd,45 ,YourDateTime) it should work

HTH
Gavin
 
Your key is the dateadd function. try this:

Date({ECAM_SCHEDULE.EVENT_DATE_TIME}) in CurrentDate to Dateadd("d",45,CurrentDate)

Software Support for Macola, Crystal Reports and Goldmine
714-348-0964
dgilsdorf@mchsi.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top