I'm trying to use the default printer function but I'm getting an arguement not optional alarm. What is it that I'm missing?
Private Sub cmdprint_Click()
Call My_Print
End Sub
Function My_Print(frmblankreport As Form) As Boolean
frmblankreport.UseDefaultPrinter = True
DoCmd.PrintOut
DoCmd.Close acForm, "frmblankreport"
DoCmd.OpenForm "frmmainmenu"
End Function
Thanks, Rib
Bartender:Hey aren't you that rope I threw out an hour ago?
Rope:No, I'm a frayed knot.
Private Sub cmdprint_Click()
Call My_Print
End Sub
Function My_Print(frmblankreport As Form) As Boolean
frmblankreport.UseDefaultPrinter = True
DoCmd.PrintOut
DoCmd.Close acForm, "frmblankreport"
DoCmd.OpenForm "frmmainmenu"
End Function
Thanks, Rib
Bartender:Hey aren't you that rope I threw out an hour ago?
Rope:No, I'm a frayed knot.