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

Records between Monday and Friday

Status
Not open for further replies.

records333

Technical User
Mar 16, 2012
41
US
Goal:

Identify patients that have upcoming appointments Monday through Friday from rundate (on Thursday).

I used a dateadd formula {PAT_ENC.APPT_TIME} in dateadd('d',8,CurrentDate)to CurrentDate to capture appointments within the week of runtime. But user would like a list of appointments hardcoded to capture patients with appointments Monday through Friday from rundate. Is there another date function that should be considered? If so, please provide an example. Thanks in advance.
 
The DateAdd function is not necessary for adding days. Try:

Code:
{PAT_ENC.APPT_TIME} in [(CurrentDate + 4) to (CurrentDate + 8)]

When run on a Thursday, it will return records where the {PAT_ENC.APPT_TIME} is in the following Monday to Friday.

Hope this helps.

Cheers
Pete
 
Sorry for delay in response. It worked! Thanks a mill!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top