G
Guest
G'Day,
I would like to place a version date (based on the current date) on reports
that are printed for each day of the week. For example if today is "Thursday"
14th and I printed the report for "Saturday" it will show a version date of
the 16th.
The version date would only be one week in advance at the most. I have been
testing a query with an IIF statement but it ends up being too complex.
Today: Date()
Day: Format([Today],"dddd")
Version: IIf([Day]="Monday" And
[txtDespatchSheetDay]="Monday",Date()+0,IIf([Day]="Monday" And
[txtDespatchSheetDay]="Tuesday",Date()+1,IIf([Day]="Monday" And
[txtDespatchSheetDay]="Wednesday",Date()+2,IIf([Day]="Monday" And
[txtDespatchSheetDay]="Thursday",Date()+3,IIf([Day]="Monday" And
[txtDespatchSheetDay]="Friday",Date()+4,IIf([Day]="Monday" And
[txtDespatchSheetDay]="Saturday",Date()+5,IIf([Day]="Monday" And
[txtDespatchSheetDay]="Sunday",Date()+6,If([Day]="Tuesday" And
[txtDespatchSheetDay]="Monday",Date()+6,IIf([Day]="Tuesday" etc
Can anyone please help me in how I should be doing this?
Thank you,
Anthony
I would like to place a version date (based on the current date) on reports
that are printed for each day of the week. For example if today is "Thursday"
14th and I printed the report for "Saturday" it will show a version date of
the 16th.
The version date would only be one week in advance at the most. I have been
testing a query with an IIF statement but it ends up being too complex.
Today: Date()
Day: Format([Today],"dddd")
Version: IIf([Day]="Monday" And
[txtDespatchSheetDay]="Monday",Date()+0,IIf([Day]="Monday" And
[txtDespatchSheetDay]="Tuesday",Date()+1,IIf([Day]="Monday" And
[txtDespatchSheetDay]="Wednesday",Date()+2,IIf([Day]="Monday" And
[txtDespatchSheetDay]="Thursday",Date()+3,IIf([Day]="Monday" And
[txtDespatchSheetDay]="Friday",Date()+4,IIf([Day]="Monday" And
[txtDespatchSheetDay]="Saturday",Date()+5,IIf([Day]="Monday" And
[txtDespatchSheetDay]="Sunday",Date()+6,If([Day]="Tuesday" And
[txtDespatchSheetDay]="Monday",Date()+6,IIf([Day]="Tuesday" etc
Can anyone please help me in how I should be doing this?
Thank you,
Anthony