I have the same report that runs for different users. So what I'm trying to do is put a button out there that will basically run thru and change the report header and data returned for each user.
The report header part works fine, but the applied filter part isn't working at all...I"m getting all the data!
DoCmd.OpenReport "Location", acViewDesign, , "[User1] = True"
DoCmd.SetProperty "label166", acPropertyCaption, "User1's Daily Report"
DoCmd.PrintOut
DoCmd.OpenReport "Location", acViewDesign, , "[User2] = True"
DoCmd.SetProperty "label166", acPropertyCaption, "User2's Daily Report"
DoCmd.PrintOut
Etc, etc....
I have a field for each user in the query and on the report (hidden on the report) as a yes/no field. So if [User1] is checked they only get the records that they are checked off on.
HELP!