Modules in access

P

pushpendra vats

Hi!!
I have small query! I have created a small module in
access 2000.I want to call this module from visaul basic6.0
Is it possible .If yes then what is the procedure for that.

Thanks in advace

Pushpendra
 
A

Alex Dybenko

add a reference to access 2000 in your VB app, then make a proc with:

Private mAccess As Access.Application
Set mAccess = New Access.Application
mAccess.OpenCurrentDatabase "C:\my.mdb"
mAccess.run "=MyFunction()"

dont remember exact syntax for .run method, so please check online help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Shortcuts for VBA procedures in Modules of MS Access 5
Access Modules empty 0
Modules 5
Search Module Content 4
Determine Module Type 2
View query written in VBA 2
Shared Modules? 1
Outlook autorun module 0

Top