sfrandolph
IS-IT--Management
I am having trouble with a DataReport Group Command.
Here is the code that I am using:
DataEnvironment1.Command3_Grouping
DataReport2.Show
DataEnvironment1.rsCommand3_Grouping.Close
This code allows me to preview the report to the screen. However, when I close the report preview window and then execute the display button again, I receive an error message that the Command3_Grouping object is already open. I have tried the unload object command but receive a type mismatch error. What am I doing wrong. Any assistance would be appreciated. Thanks.
Here is the code that I am using:
DataEnvironment1.Command3_Grouping
DataReport2.Show
DataEnvironment1.rsCommand3_Grouping.Close
This code allows me to preview the report to the screen. However, when I close the report preview window and then execute the display button again, I receive an error message that the Command3_Grouping object is already open. I have tried the unload object command but receive a type mismatch error. What am I doing wrong. Any assistance would be appreciated. Thanks.