DoCmd.PrintOut Works for MDB but not MDE

J

Jason Gyetko

Does anyone know why DoCmd.PrintOut works for and MDB database, but not an
MDE database. Is there a different function I can use, or a work-around?
Thanks.

Dim stDocName As String
Dim MyForm As Form

stDocName = "frmCategoryCountsSUB"
Set MyForm = Screen.ActiveForm
DoCmd.SelectObject acForm, stDocName, True
DoCmd.PrintOut
DoCmd.SelectObject acForm, MyForm.Name, False
 
Top