Avatar of Clive Beaton
Clive Beaton
Flag for Australia asked on

How do I create a link from the front end to a table in the back end.

I have created a table in the back end database using VBA in the front end.

How do I create a link in the front end to the new table?

Thanks in advance

Clive
DatabasesMicrosoft AccessVBA

Avatar of undefined
Last Comment
Clive Beaton

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Scott McDaniel (EE MVE )

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Gustav Brock

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Clive Beaton

ASKER
I don't know if this is important but the table only exists in the back end.

With transferdatabase:

1. Does the table have to exist in the front end?
2. Where do I specify the password for the back end?
Gustav Brock

If so, you may need the method described here:

Docmd.TransferDatabase with a password-protected database
Clive Beaton

ASKER
Ignore my last question.  Problem solved.  Thanks to you both.

Clive
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Armen Stein - Microsoft Access MVP since 2006

Hi Clive,

If you keep a persistent link to that table you created, you also need to relink when the location of the back-end database changes.  You're welcome to use our free J Street Access Relinker on our J Street Downloads page.  It's a lot nicer than the Linked Table Manager.

http://www.JStreetTech.com/downloads

It's some code that you simply copy into your front-end application.  It handles multiple Access back-end databases, ignores non-Access tables, and can automatically and silently relink to back-end databases in the same folder as the application (handy for work databases or single-user scenarios).  There's a ReadMe table with instructions.

Cheers,
Armen
Kamlesh Jain

i am using J Street Access Relinker and it works wonder...
Thanks
Armen Stein - Microsoft Access MVP since 2006

Thanks Kamlesh!  Glad you like it.  :)
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Clive Beaton

ASKER
Hi Armen,

Thanks for that.  I wish I had it years ago.  It would have made life so much easier.

Clive