Expand|Select|Wrap|Line Numbers
- 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.....