G
Graeme Richardson
Is it possible to read the WhereCondition argument in the Report_Open event?
DoCmd.OpenReport "rptAddressLabel", acViewPreview, , "uidMember = 1234"
I want to be able to change the condition (to "uidMember = 5678" say) or
discard it all together (i.e. print all address labels), while retaining the
ability to Cancel the report. I have a dialog where the user can enter
criteria. The Me.Filter value is "" in the Report_Open event.
I'm trying to do this from an object point of view. I give the report some
information and it does the rest itself. Basically, I'm trying to get an
OpenArgs property for a report.
I see that the Report_Activate event gives the Me.Filter value.
Unfortunately, the report is committed by that stage.
Please, no global variables.
Thanks, Graeme.
DoCmd.OpenReport "rptAddressLabel", acViewPreview, , "uidMember = 1234"
I want to be able to change the condition (to "uidMember = 5678" say) or
discard it all together (i.e. print all address labels), while retaining the
ability to Cancel the report. I have a dialog where the user can enter
criteria. The Me.Filter value is "" in the Report_Open event.
I'm trying to do this from an object point of view. I give the report some
information and it does the rest itself. Basically, I'm trying to get an
OpenArgs property for a report.
I see that the Report_Activate event gives the Me.Filter value.
Unfortunately, the report is committed by that stage.
Please, no global variables.
Thanks, Graeme.