M
maria.lazarova
Hi,
I am trying to create a macro to print out a report for a specific
department's activity. I'd like to open the report, set the value on
specific field for this particular department and print it out.
I am having trouble with the SetValue field and am not sure what I do
wrong.
In the Item field I have [Reports]![Monthly Report]![DepartmentID]
In the Expression field I have [Reports]![Monthly Report]!
[DepartmentID]=38452
38452 is the Department ID I want to print the report for.
When I run the Macro it stops midway and gives me a message "Action
Failed - Action name SetValue". I have to press Halt and then the
report opens for all departments, without any filter.
I'd appreciate any suggestions.
Thank you,
Maria
I am trying to create a macro to print out a report for a specific
department's activity. I'd like to open the report, set the value on
specific field for this particular department and print it out.
I am having trouble with the SetValue field and am not sure what I do
wrong.
In the Item field I have [Reports]![Monthly Report]![DepartmentID]
In the Expression field I have [Reports]![Monthly Report]!
[DepartmentID]=38452
38452 is the Department ID I want to print the report for.
When I run the Macro it stops midway and gives me a message "Action
Failed - Action name SetValue". I have to press Halt and then the
report opens for all departments, without any filter.
I'd appreciate any suggestions.
Thank you,
Maria