With Access2k,
I have a text control on my startup form that uses dlookup() on an
ODBC-linked table.
The linked table is actually on SQL Server and the link uses a .dsn file
Sometimes, when the SQL Server is down (or messed up somehow), the link is
not working.
When that happens the startup form doesn't load properly and there is a
30-45 second delay
while A2k continues to try. Then the SQL Server error message displays.
During this long delay,
my users think that their screen is "locked up" and they ctrl-alt-delete to
break.
Is there some sort of connection check function that I can put in a module
that will check the connection
and return true or false, without taking 30-45 seconds?
I'm not a VBA pro, so lots of details would be useful.
TIA,
Fred Zuckerman
San Diego, CA, USA
I have a text control on my startup form that uses dlookup() on an
ODBC-linked table.
The linked table is actually on SQL Server and the link uses a .dsn file
Sometimes, when the SQL Server is down (or messed up somehow), the link is
not working.
When that happens the startup form doesn't load properly and there is a
30-45 second delay
while A2k continues to try. Then the SQL Server error message displays.
During this long delay,
my users think that their screen is "locked up" and they ctrl-alt-delete to
break.
Is there some sort of connection check function that I can put in a module
that will check the connection
and return true or false, without taking 30-45 seconds?
I'm not a VBA pro, so lots of details would be useful.
TIA,
Fred Zuckerman
San Diego, CA, USA
Comment