By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,506 Members | 1,891 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,506 IT Pros & Developers. It's quick & easy.

Hide friendly ODBC connection error message

P: n/a
Hi All,
I have an application that links tables to an ODBC source. The DSN
parameters are obtained from a custom .ini file. An incorrect DSN string
gives the user a 'friendly' connection error message that I would like to
supress in order to provide my own error message. This happens when using
..RefreshLink method. I already have an error handler in place, but it
doesn't reach this before displaying the friendly message.

I have tried disabling the SetWarnings to False, but this doesn't work
either.

Any ideas please?
TIA
Mark Day.

Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Mark Day wrote:
Hi All,
I have an application that links tables to an ODBC source. The DSN
parameters are obtained from a custom .ini file. An incorrect DSN string
gives the user a 'friendly' connection error message that I would like to
supress in order to provide my own error message. This happens when using
..RefreshLink method. I already have an error handler in place, but it
doesn't reach this before displaying the friendly message.

I have tried disabling the SetWarnings to False, but this doesn't work
either.

Any ideas please?


What happens instead of your error handler? Are you using DAO? (I
presume you are with the .RefreshLink method). Is it that it will bring
up another connection dialog so the only error returned to the app is
one of "user cancelled"?

--
Error reading sig - A)bort R)etry I)nfluence with large hammer
Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.