Link to home
Start Free TrialLog in
Avatar of Conernesto
ConernestoFlag for United States of America

asked on

Command button

Command button

I have below code on a command button. When I run the command, I get a message Compile error: Method or data member not found. I am trying to close a report named RandSt_byState2_rpt     What do I need to change for the command to work?

Private Sub Command36_Click()
DoCmd.CloseReport "RandSt_byState2_rpt"
End Sub
SOLUTION
Avatar of Anders Ebro (Microsoft MVP)
Anders Ebro (Microsoft MVP)
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial