That doesnt help. From the switchboard, i want to click a button that will open the report, and the report prints automatically.
I tried using the code
DoCmd.PrintOut acPrintAll
In the On open event to no success.
Im getting the error message
This action cannot be carried out while...
Well basically, from a switchboard, i want to print a report without having to open it, go to filed and then click print. Ideally i just want it to open and print on its own.
Can anybody explain why this does not work
Private Sub Report_Open(Cancel As Integer)
DoCmd.PrintOut acPrintAll
End Sub
Im getting the error message
This action cannot be carried out while processing a form or report event.
Thanks for all your help.
Your a wiseman.
That made sense, but is there a way i can set it so that if the computer has been left in the same state for, lets jus say 30 seconds, then something happens.
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
Could someone explain to me what
acFormBar, acRecordsMenu and acMenuVer70
refer to please.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.