B
Blondie
Sub RunAccessMacro()
Dim appAcc As Access.Application
'Opens Access or gets reference to app already running
Set appAcc = New Access.Application
'Optional to show or hide Access
appAcc.Visible = True
appAcc.OpenAccessProject
"P:\Analytic\Heather\Individual\IndividualTurnoverReport.mdb"
appAcc.DoCmd.RunMacro "Macro1: Get Data"
appAcc.DoCmd.RunMacro "Macro2: Create Report"
'Close Access
appAcc.Quit
'This will close Access, even w/o the 'Quit' command
Set appAcc = Nothing
End Sub
Dim appAcc As Access.Application
'Opens Access or gets reference to app already running
Set appAcc = New Access.Application
'Optional to show or hide Access
appAcc.Visible = True
appAcc.OpenAccessProject
"P:\Analytic\Heather\Individual\IndividualTurnoverReport.mdb"
appAcc.DoCmd.RunMacro "Macro1: Get Data"
appAcc.DoCmd.RunMacro "Macro2: Create Report"
'Close Access
appAcc.Quit
'This will close Access, even w/o the 'Quit' command
Set appAcc = Nothing
End Sub