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

How to call a procedure stored in a remote mdb? 1

Status
Not open for further replies.

steve728

Programmer
Mar 16, 2003
536
US
Will someone please provide me with some VBA code that enables me to call a Public Sub Proc that is stored in a remote (same drive and folder) MDB file.

Thanks,

Steve728
 
You can add an mdb or mde as a reference. Here are some notes:

Code:
Sub Ref_Remove()

Application.References.Remove Application.References("Tek-Tips")

End Sub

Sub Ref_Add()

Application.References.AddFromFile "C:\Docs\Tek-Tips.mdb"

End Sub

Sub Run_Sub()
'Note that this will not compile
Call CloseAll

End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top