G
Guest
Ok, here goes.
I have a report based on a Crosstab Query with dates that vary.
I want to check each date to see if it is on the Holidays table
(T:Holidays), and return it's ID from that table if it is.
Across the top of the report I use the [Today] field (=date()) to set a
start date, then I use consecutive fields [Today1], [Today2], etc. to
generate the days after by setting their control sources to =[Today]+1,
=[Today]+2, etc.
The field I am using to do the check on the report is Today# where # is 1
through 14 (or I can make it [Today]+#).
Here is my contorl source for this field:
=DLookUp("[ID]","T:Holidays","[Holiday]=[Today4]")
I just get a blank field in return. I should be getting back 5 for the 4th
of July, but it's blank.
Any ideas?
THX!
I have a report based on a Crosstab Query with dates that vary.
I want to check each date to see if it is on the Holidays table
(T:Holidays), and return it's ID from that table if it is.
Across the top of the report I use the [Today] field (=date()) to set a
start date, then I use consecutive fields [Today1], [Today2], etc. to
generate the days after by setting their control sources to =[Today]+1,
=[Today]+2, etc.
The field I am using to do the check on the report is Today# where # is 1
through 14 (or I can make it [Today]+#).
Here is my contorl source for this field:
=DLookUp("[ID]","T:Holidays","[Holiday]=[Today4]")
I just get a blank field in return. I should be getting back 5 for the 4th
of July, but it's blank.
Any ideas?
THX!