in the printing of the access form using following cord.. get error........
the error is...
''the object you referenced in the visual basic procedure as an OLE object isn't an OLE object''
error number- 2950
please give me the solutions.....
Code:
Private Sub CommandBtn_Click() Dim MyForm As Form Set MyForm = Screen.ActiveForm DoCmd.SelectObject acForm, MyForm.Name, True DoCmd.PrintOut DoCmd.SelectObject acForm, MyForm.Name, False End Sub
the error is...
''the object you referenced in the visual basic procedure as an OLE object isn't an OLE object''
error number- 2950
please give me the solutions.....
Comment