Log Out of an ODBC Connection from MS Access

I have an ODBC connection to (Sage 100 ERP) databases with Microsoft Access.  We have three companies that each has their own separate database.  I have to log in each time I access a different database.  
Is there a way to log out of an ODBC connection?  Currently, I exit MS Access to log out of the ODBC connection and then open MS Access again to log into another Sage database .
Thank you for your help,
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gustav BrockCIOCommented:
I guess you would have to relink your tables.
That will probably take longer time than closing and relaunching Access.
John TsioumprisSoftware & Systems EngineerCommented:
How about closing the connection object and reopening the connection...i guess that you use ADODB connection to the SAGE database.
jack3_99Author Commented:
I am not familiar with ADODB connection.  I linked Access to tables in Sage using Access' External Data-From Other Sources-ODBC Database.
Jim Dettman (Microsoft MVP/ EE MVE)President / OwnerCommented:
One thing you could do is setup a separate DSN for each company.   Then in the app, have all your linked tables based on a DSN.

 You could then switch the database it's pointing to by changing the DSN and refreshing the links.  I've done this in the past to switch between production DB's and test DB's and it is fairly fast.

 Note that this is more or less what gustav was suggesting (relink/refresh the tables).


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jack3_99Author Commented:
Thank you for your explanation.  I apologize for the delayed response.  Updates from Experts Exchange went to my spam folder.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.