OK Button

Jimee

Registered User.
Local time
Today, 18:13
Joined
May 4, 2001
Messages
21
I am trying to pass a return in a VBA program that is printing multiple reports. I have evertyhing automated except clicking the ok button. Anyone know how to do that?
 
To simulate the clicking of a button via VBA:


ButtonName_Click

David
 
I don't think that will help, the OK button is a windows "OK". When I launch the print routine in my module a print dialog pops up and I just want to have that automatically hit the ok button and print a report, it is not one that is programmed.
Thanks,
Jimee
 
Are you printing Access reports?

If so, why are you using the print dialog box, why not use the DoCmd.PrintReport option


What you are trying to achieve would involve a lot of code to enable you to get the window handle etc.

David
 

Users who are viewing this thread

Back
Top Bottom