Kick off Access Queries From Excel

bconner

Registered User.
Local time
Today, 03:48
Joined
Dec 22, 2008
Messages
183
I have a series of Access Databases that I run reports out of each month. I would like to set up an excel worksheet from which I could kickoff all of the queries, is this possible and if so how? I don't want to return the results back to excel, I simply want to kick them off using a button in excel. Also some of the queries require criteria is it possible to pass the value of an excel cell to an access query criteria? If so how?

Any help is greatly appreciated.
 
Hi,

Set up some macros in access that does all the uppdating then use:

Code:
Sub XLUpdate()
Dim B As Object
Set B = CreateObject("Access.Application")
B.Visible = False
B.OpenCurrentDatabase ("Path of database")
B.DoCmd.RunMacro "Macro name"
End Sub

Bob
 
Excellent, thank you Bob!
 

Users who are viewing this thread

Back
Top Bottom