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

The fields I'm working with are Acc 1

Status
Not open for further replies.

ecugrad

MIS
Apr 17, 2001
191
US
The fields I'm working with are AccountNumber, EndTime(datetime) and StartTime(datetime)in CR8. I been tasked to write a weekly report that will display the number of Accounts that have been indexed from M-F between 0600 and 1800. I would appreciate any suggestions on how to write this. I'm still pretty much a newbie on writing formulas.

Thanks
 
ecugrad,

You would write something like this - and use the formula in the record selection.

DayofWeek({dbfield.AccountDate})in [2,3,4,5,6] and Time({dbfield.AccountDate})>= 06:00:00 and Time({dbfield.AccountDate})<= 18:00:00

DayofWeek function returns a number from 1 to 7 (Sunday to Saturday) and Time(DateTime) returns the time in military format.

Hope this helps you.

Cheers,

paulmarr@arcom.com.au
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top