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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detect for a ODBC connection before continuing with code ? 1

Status
Not open for further replies.

Webkins

Programmer
Dec 11, 2008
118
US
I have an Access 2003 database which uses a System DSN ODBC connection to a SQL Server 2000 database on a Windows XP Professional PC. I would like to verify that this connection is present, installed, before proceeding with my Access VBA code and if not then skip the ODBC portion of the code which retrieves the data. Is it possible to detect the presense of this connection using VBA ?

Thank you all for replying.
 
check the errors collection of the connection object
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top