stevekos07
Registered User.
- Local time
- Today, 07:52
- Joined
- Jul 26, 2015
- Messages
- 174
I should know this but I just can't think of the solution
.
I have a report which is a call sheet that returns a list of clients to be called based on a query expression as follows:
CallToday: IIf(Date()>=[NCUFN_Date]
Or Date()=[NoCallFrom]
Or Date()=[NoCallFrom2]
Or Date()>=[NoCallFrom] And Date()<=[NoCallTo]
Or Date()>=[NoCallFrom2] And Date()<=[NoCallTo2]
Or Weekday(Date(),1)=1 And [Sun]=True
Or [Status]=2
Or [Status]=3
Or [Status]=4
Or Weekday(Date(),1)=2 And [Mon]=True
Or Weekday(Date(),1)=3 And [Tue]=True
Or Weekday(Date(),1)=4 And [Wed]=True
Or Weekday(Date(),1)=5 And [Thu]=True
Or Weekday(Date(),1)=6 And [Fri]=True
Or Weekday(Date(),1)=7 And [Sat]=True
Or [P/H]=True And DLookUp("HolDate","tblPublicHolidays","HolDate=Date()"),"No","Yes")
As you can see it's quite a lengthy expression but not too difficult when broken down.
As you can see, this expression is based on today's date - Date(). It produces a call sheet for today and shows which clients need a call today based on all the variables shown.
What I want to do is to be able to print a call sheet for any future date.
How do I manage this? I was thinking of referring to a field on the report or form itself, or to another field in the query. What would be ideal is for a value entry parameter in the query, but I can't think of how to set that up.
As always, your assistance will be greatly appreciated!

I have a report which is a call sheet that returns a list of clients to be called based on a query expression as follows:
CallToday: IIf(Date()>=[NCUFN_Date]
Or Date()=[NoCallFrom]
Or Date()=[NoCallFrom2]
Or Date()>=[NoCallFrom] And Date()<=[NoCallTo]
Or Date()>=[NoCallFrom2] And Date()<=[NoCallTo2]
Or Weekday(Date(),1)=1 And [Sun]=True
Or [Status]=2
Or [Status]=3
Or [Status]=4
Or Weekday(Date(),1)=2 And [Mon]=True
Or Weekday(Date(),1)=3 And [Tue]=True
Or Weekday(Date(),1)=4 And [Wed]=True
Or Weekday(Date(),1)=5 And [Thu]=True
Or Weekday(Date(),1)=6 And [Fri]=True
Or Weekday(Date(),1)=7 And [Sat]=True
Or [P/H]=True And DLookUp("HolDate","tblPublicHolidays","HolDate=Date()"),"No","Yes")
As you can see it's quite a lengthy expression but not too difficult when broken down.
As you can see, this expression is based on today's date - Date(). It produces a call sheet for today and shows which clients need a call today based on all the variables shown.
What I want to do is to be able to print a call sheet for any future date.
How do I manage this? I was thinking of referring to a field on the report or form itself, or to another field in the query. What would be ideal is for a value entry parameter in the query, but I can't think of how to set that up.
As always, your assistance will be greatly appreciated!