Link to home
Start Free TrialLog in
Avatar of yadafarin
yadafarin

asked on

how to create a link table in VBA?

hi
my application (in mde format) uses advanced code and design.
i protect it with a designed login form.

I want create a link to my bank.mdb tables in my app.
when i open my app, it create the link in VBA.
can u help me?
thanks
Avatar of jadedata
jadedata
Flag of United States of America image

Hi yadafarin,
how will your app know where these linkable tables are located??

:)-j-
           DoCmd.TransferDatabase acLink, "Microsoft Access", "Path", acTable, "TableName", "TableName"

IS that what you're looking for?
Is the location of this bank.mdb going to be constant in relation to the application?
Avatar of yadafarin
yadafarin

ASKER

it's always in 'D:\Vazife'.
but my bank.mdb has an Access Password.
doesn't your code check password or...?
Create a link in your program using the FILE/GET EXTERNAL DATA/LINK TABLES



In Microsoft Access , if you import a table from another Microsoft Access database (.mdb) that's a linked table in that database, it will still be linked after you import it. That is, the link is imported, not the table itself.

If the database you're accessing requires a password, a dialog box appears when you run the macro. Type the password in this dialog box.

J

ASKER CERTIFIED SOLUTION
Avatar of jefftwilley
jefftwilley
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial