Link to home
Start Free TrialLog in
Avatar of david_88
david_88

asked on

Access VBA Preview / Printing Report

I have a report which i want to create 2 buttons 1 to preview the report and the other to print the report in 1 click ie print to deafult printer and based on page ranges saved in table.

i have the below code to preview but don't know how to get that to print.  In 2007 how do you convert a macro to vba code

DoCmd.OpenReport "rpt_printorders", acViewPreview

dave
Avatar of Jupiler78
Jupiler78
Flag of Belgium image

Hello david_88,

DoCmd.printout

What do you mean by the convert macro?

Regards,

Jupiler78
Avatar of david_88
david_88

ASKER

sometimes its easier to create a macro and then convert to vba which you could do in 2003
ASKER CERTIFIED SOLUTION
Avatar of Jupiler78
Jupiler78
Flag of Belgium 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
yeah thanks
Glad I could help.
Good luck and thanks for the points & grade.

Jupiler78