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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Macro: remote execution

Status
Not open for further replies.

DajTwo

Technical User
Jul 17, 2008
157
US
Hi all

In an Access 2003, front end back end config, how can I have the front end execute a macro located in the back end database with vba on a command button?

The macro is ised to update the tables from a restricted server.

Thanks!!!
 
Check out Run, for example:

Code:
Dim ac As New Access.Application

'Database with a function
ac.OpenCurrentDatabase ("C:\docs\ltd.mdb")

'Function that needs to be run with one variable
ac.Run "SetVar", CurrentDb.name

 
Thanks

I used the runapp command in a macro.. and seems to work well.

I will keep your method in mind though!!!

Thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top