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
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
ASKER
sometimes its easier to create a macro and then convert to vba which you could do in 2003
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
yeah thanks
Glad I could help.
Good luck and thanks for the points & grade.
Jupiler78
Good luck and thanks for the points & grade.
Jupiler78
DoCmd.printout
What do you mean by the convert macro?
Regards,
Jupiler78