I have added a text box to a report which is supposed to display the latest day of the week but I am having trouble getting DLookup to work properly.
I am trying to return the latest day of the week by finding the highest day number. Sat. is [DAY OF WEEK], 1 is [DAY NO], Sun. is [DAY OF WEEK], 2 is [DAY NO], etc.
Here's my code in the Control Source property of the text box:
="through " & DLookup("[DAY OF WEEK]","[tbl DAILY DATA]",DMax("[DAY NO]","[tbl DAILY DATA]"))
Thanks.
I am trying to return the latest day of the week by finding the highest day number. Sat. is [DAY OF WEEK], 1 is [DAY NO], Sun. is [DAY OF WEEK], 2 is [DAY NO], etc.
Here's my code in the Control Source property of the text box:
="through " & DLookup("[DAY OF WEEK]","[tbl DAILY DATA]",DMax("[DAY NO]","[tbl DAILY DATA]"))
Thanks.