I made Report1, and in the report's VBA code I can read a field from the query in the recordsouce by doing:
If (Me!Field1="03") then ...
I created a second report from scratch, and copied all code from Report1 to Report2. Report2 has the same appearance except the query is different. But now the Me!Field1 gives me an error in the VBA code in Report2.
What did I forget to set up?
Report2 does use a filter, but so does Report1. So that can't be an issue. And I double checked my fields in the query in Report2 and Field1 is there and spelled the same.
Thanks.
If (Me!Field1="03") then ...
I created a second report from scratch, and copied all code from Report1 to Report2. Report2 has the same appearance except the query is different. But now the Me!Field1 gives me an error in the VBA code in Report2.
What did I forget to set up?
Report2 does use a filter, but so does Report1. So that can't be an issue. And I double checked my fields in the query in Report2 and Field1 is there and spelled the same.
Thanks.