Help!!
While using VB to print out an Access report, I receive the following msgbox. Does anyone have any idea why?
2585 This action cannot be carried out while processing a form or report event
Dim MSAccess As Access.Application
Private Sub Command1_Click()
'References MS Access 9.0 object library.
Set MSAccess = New Access.Application
MSAccess.OpenCurrentDatabase ("c:\file\testfile.mdb"
MSAccess.DoCmd.OpenReport "rptResolved", acViewNormal
MSAccess.CloseCurrentDatabase
Set MSAccess = Nothing
End Sub
While using VB to print out an Access report, I receive the following msgbox. Does anyone have any idea why?
2585 This action cannot be carried out while processing a form or report event
Dim MSAccess As Access.Application
Private Sub Command1_Click()
'References MS Access 9.0 object library.
Set MSAccess = New Access.Application
MSAccess.OpenCurrentDatabase ("c:\file\testfile.mdb"
MSAccess.DoCmd.OpenReport "rptResolved", acViewNormal
MSAccess.CloseCurrentDatabase
Set MSAccess = Nothing
End Sub