I'm trying to open the print option on a repport. I want to allow the user to choose the printer so I just need the print window to open when the report opens. How can I do this? PrintOut prints it directly and that is not what I need.
________________________________________________________
Zameer Abdulla
Help to find Missing people My father was a realistic father; not a vending machine dispense everything I demanded for!!
Thaaanks, to you two. the thing is finished. i still have to filter an error that seems to loop but it works!
Here is what I did Zameer, the option from the site you gave me is very interesting but not for what I want, I prefer direct buttons from the form because my users want it easy:
This is the module:
Function OpenBlowersAll()
Dim ReportName As String
ReportName = "Blowers"
If MsgBox("Print now?", vbYesNo) = vbYes Then
DoCmd.OpenReport ReportName, acViewPreview, "MOTOR All"
DoEvents
DoCmd.RunCommand acCmdPrint
End If
End Function
and this is the code for the button in the form:
Private Sub RepBlowers_Click()
On Error GoTo Err_RepBlowers_Click
If the user click on 'Yes' for printing but then cancels the printing on the printers window, the error window keeps appearing, I don't know why because this is how I've been filtering all my other errors and they always work. any idea why this may be happening?
________________________________________________________
Zameer Abdulla
Help to find Missing people My father was a realistic father; not a vending machine dispense everything I demanded for!!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.