Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / SQL Server / ADP / May 2004

Tip: Looking for answers? Try searching our database.

Switching connection properties at startup

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Atlas - 27 Apr 2004 15:17 GMT
In a previous post I've learned how to switch programmatically from two
database servers on two computers.

At startup a .ini file is read and the proper server is set.

Unfortunatelly it looks like the .adp project saves on exit the last server,
so before being able to switch to the local server, Access tries to restore
the previous connection, hanging for 30 seconds.

Is there a way to switch immediately before Access's "restore"?

Bye

***************************************************
Atlas: Rookie powered by AC2003 - A smart "by design" product!
***************************************************
Brian M. Sockey - 01 May 2004 06:51 GMT
If you don't want the old connection properties to be used automatically
then you need to clear the connection before closing the application.  The
most effective way to do this is to run the following code in the close
event of a hidden form:

CurrentProject.OpenConnection ""

The next time the application opens it will be in a disconnected state.  You
can then present your own logon form and set the SQL Server connection
programmatically.

Brian M. Sockey
www.farsightsolutions.com

> In a previous post I've learned how to switch programmatically from two
> database servers on two computers.
[quoted text clipped - 12 lines]
> Atlas: Rookie powered by AC2003 - A smart "by design" product!
> ***************************************************
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.