I am using MS Access 2010. I want to set a label on a report after opening it. I open the report with the following command, where sReport holds the report name:
I then check to make sure that the action didn't fail.
I then set the label with the following code:
The code does not give me an error, but neither does the xlblOption label have the desired value.
Any suggestions about what I am doing wrong?
Code:
DoCmd.OpenReport sReport, acViewPreview
I then set the label with the following code:
Code:
Reports(msObject).xlblOption.Caption = Form_fFStMenus.xlblActiveMenu.Caption & nOption
Any suggestions about what I am doing wrong?
Comment