Programming issue with this Macro

F

forest8

Hi

I am trying to program a print command in my database.

I have created a form which has a tab control with 3 pages. The Tab Control
is named "Main". When I have this code in the Event Procedure, nothing prints
out. Can someone point me in the right direction in how to fix this please?


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

Thank you in advance.
 
L

Lynn Trapp

First, I'm not sure why you want to print a form, but the problem may be in
the name of your procedure. Try changing it to:

Private Sub Print_Form_Click()
 

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