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 1 5976
Dear Fred,
Why not just have a simple warning that the loading may take up to 1
minute.
Or you might like to try using the timer function in the form. You
could try to fire off a Message with a count down from 1 minute. If
the connection is OK, I am certain that no-one will complain if the
result is faster than the remaining time shown on your message.
Regards
Peter
Fred Zuckerman wrote: 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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Richard Muller |
last post by:
Hi All,
I've got the ASP script shown below that complains as follows:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
Data source name not found and no default
driver specified...
|
by: Wolfgang Kaml |
last post by:
Hello All,
I have been working on this for almost a week now and I haven't anything up
my sleeves anymore that I could test in addition or change....
Since I am not sure, if this is a Windows...
|
by: SerGioGio |
last post by:
Hello,
I am going nuts. I am trying to connect to my local ORACLE instance using
ODBC.
It used to work few weeks ago, but it fails now.
Connection with:
- SQL*plus: connection works!
-...
|
by: Todd Huish |
last post by:
I have noticed something disturbing when retrieving datasets over a
relatively slow line (multiple T1). I am looking at about 25 seconds to
retrieve 500 rows via a php-odbc link. This same select...
|
by: Nifty |
last post by:
After creating a routine to select from past ADODB connection strings, I
found that it takes 60 seconds to timeout! I found the Microsoft article
below
...
|
by: Scott A. Jones |
last post by:
Hello,
I am in the process of 'figuring out' how to verify if I have a valid
connection to an ODBC data source (SQL Server 2000). I've written code to
run a pass-through query against a table...
|
by: Paul |
last post by:
Hello,
I am converting an Access database on our network to a sql 2000
backend and keeping access as the front end. The access database has
evolved and been a solution to collect data but now...
|
by: cindy |
last post by:
this is the call
private void Page_Load(object sender, System.EventArgs e)
{
OdbcConnection connection = new OdbcConnection ("DSN=PFW52");
CreateDataAdapter(connection);
}
this is the code,...
|
by: Pradeep83 |
last post by:
Hi All
Problem : I am unable to retrieve the data from the table in postgres database using C application which i have written in solaris os.
Query: How to check whether connection is there...
|
by: BillCo |
last post by:
I need to Connect to an online mySQL database from Access using JET
ODBC with no saved DSN.
Anyone out there who as made this work and can give example of how
it's done? I've seen lots of posts...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |