Problem printing tab pages

F

forest8

Hello

Through the help of some of the MVP people on this board, I am using the
following code to print tabs:

Main is the tab control on one of my forms.

Private Sub_Print_Form_Click()
Me.Main = 0
DoCmd.PrintOut
Me.Main = 1
DoCmd.PrintOut
Me.Main = 0
DoCmd.PrintOut

End Sub

I get a

Rub-time error '2212':
Microsoft Office Access cannot print your object.

When I print other forms, I don't have this problem.

Thank you for your help in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top