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,
Jack
jack3_99Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.
0
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.
0
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.
0
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).

Jim.
0
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
Databases

From novice to tech pro — start learning today.