Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running Acces Macro/Module from VB

Status
Not open for further replies.

RobertMottram

Programmer
Apr 25, 2002
39
GB
What I want to be able to do is run a Macro or module writen in Access in VB.
Does anyone know how this is done.
From what I can see it probably has something to do with application.access, but I know no more then that!

Thanks for any help you can give

Rob
 
just type
docmd.runmacro "macroname"

RFletch
 
Sorry, I want to run the macro or good from a VB program not from access VBA. This will not be able to work as I have not told VB what database to open so it can not be able to run the macro.
I know that this will work from an access module (ie VBA)

Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top