need code help, open, print, close (1 Viewer)

asp_learner

Registered User.
Local time
Today, 11:48
Joined
Jun 7, 2001
Messages
46
I need code to automatically print a report after it is open. Can anyone help. In other words after clicking on a radio button for a person, I want to open the report, print it and then close it.

Thanks,
Eva
 

Travis

Registered User.
Local time
Today, 03:48
Joined
Dec 17, 1999
Messages
1,332
You want to open it in preview mode, print it and close it in one swoop?

Why not just Print it?

You can do this by creating a macro that uses the OpenReport Action setting its View to Print.

Or

You can use code (Which allows for better debuging and Error handling)

docmd.OpenReport "ReportName",acViewNormal
 

Users who are viewing this thread

Top Bottom