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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CRXI - Pull 7am to 7am for each day

Status
Not open for further replies.

wld1957

Technical User
Feb 3, 2006
68
0
6
US
CRXI - It has been awhile since I had to write a formula. I have been trying to get the data to pull records for the following time frame. Since this is done on a daily basis I have tried to use Today -1 to Today but have not been able to include the time frame. I have tried several time variations but have not been sucessful. Any thought would be greatly appreciated.

{CAS_Action.ReceivedTime} = Today -1 to today (this pulls both days).

Daily - between 7:00AM previous day to 7:00AM Current Day

Bill
 
After some testing I figured it out. I had to combine the the date and time fields and then use them in a formula that I put in the select criteria.

datetime(date({CAS_Action.ReceivedDate}),time({CAS_Action.ReceivedTime}))

{@DateTimeCombo} > DateTime(Year(CurrentDate),Month(CurrentDate),Day(CurrentDate),07,00,00)-1 and
{@DateTimeCombo} <= DateTime(Year(CurrentDate),Month(CurrentDate),Day(CurrentDate),7,00,00) and
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top