Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

switch forms between diff. databases

Status
Not open for further replies.

giovi2002

Programmer
Aug 22, 2005
47
NL
I have 2 different databases which have the same datamodel and same user-interface. I don't want to put the data together because both might become different in the roadmap for the applications.

But for now a user is asking me to make one application with a switch button between the applications. I don't know whether it's possible: both databases reside on the same server and have the same user/pass login which my application uses. In my adp connection I need to choose one database, is it possible to 'switch' the connections in the application?
 
Yes, its possible:

CurrentProject.OpenConnection str_Connection, User, PW

is the thing you are looking for.

Regards
Diogenes
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top