Egiallombardo
Programmer
Anyone know of a plugin for vb that would allow you to run Reports created in an Access Database?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Option Explicit
'References MS Access 9.0 Object Library
Dim MSAccess as Access.Application
Private Sub cmd_Report_Click()
Set MSAccess as New Access.Application
MSAccess.OpenCurrentDatabase ("c:\vb\MyBusiness.mdb")
' The following line needs to be added, although I
' don't believe it makes sense.
MSAccess.DoCmd.OpenReport "rptEmployee", acViewPreview
MSAccess.DoCmd.OpenReport "rptEmployee", acViewNormal
MSAccess.CloseCurrentDatabase
Set MSAccess = Nothing
End Sub