473,396 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

APD connect manually only

Hello,

I just want my ADP not to connect on startup. Normally when opening the
xx.adp-file Access tries to connect automatically.

Is there any option, trick, workaround? I found a source to reconnect
or change the connection via vba code, now I want to prohibit Access to
start a connection on startup as this takes too much time.

Thanks in advance!

Aug 8 '06 #1
2 2331
Co***************@Web.de wrote:
Hello,

I just want my ADP not to connect on startup. Normally when opening the
xx.adp-file Access tries to connect automatically.

Is there any option, trick, workaround? I found a source to reconnect
or change the connection via vba code, now I want to prohibit Access to
start a connection on startup as this takes too much time.
My experience with ADPs is that they open quickly unless the connection
errors out, not being able to find the Server, Database, or having
problems with User ID or Password. This can take forever.

In any case, why would connecting through code be faster than default
connecting?

The Connection Objects made available to us through VBA are copies of
the ADP's Connections. We can close or disonnect these copies, but this
has no effect on the information used to connect; it persists. We can
cause this information to change by reconnecting or changing the
connection, but the persisted information is simply replaced by our new
information.

We could create a new ADP, not connect it to anything, import all the
objects from the old ADP; then we would have what you want. But as soon
as we established a connection, the connection information would
persist and at next Open, the ADP would try to connect.

I have experimented with ADPs with no connection (never had a
connection) using ADO recordsets (with their own ADO connections having
nothing to do with the project other than they are created in code) for
forms and reports. In my opinion, because of Security concerns, these
are the only kind of ADPs that should be used in a situation where any
data on the Server is important or crucial and where there are users
beyond me. These ADPs are completely capable and, actually pretty
wonderful applications. To some extent they combine the joys of bound
and unbound. But development time is expanded by a factor of at least
two for me and I am a experienced coder and a experienced ADP
developer. For others the factor might be more, or things might not
work at all.

My guess is that it is not your connection which is taking so long at
startup. I would suggest that you carefully examine everything you do
at startup to see if there is not something else that is slow. Errors
can be problematic when code handles them; sometimes Access will churn
for a long time before it decides to move on.

Aug 8 '06 #2
Thanks for your reply!

You are right, the best possibility would be to make the whole
conection stuff separately and have no default connection.
Why I wanted that solution is, that sometimes the server is down.
Opening the application then ends in a frozen application. (But this
behaviour is not normal, I played with a test ADP and it opened
although no server present.)

In addition I want to give my customer the ability to switch from test
to plan or productive system.

Sincerely

Cornelius

Lyle Fairfield schrieb:
Co***************@Web.de wrote:
Hello,

I just want my ADP not to connect on startup. Normally when opening the
xx.adp-file Access tries to connect automatically.

Is there any option, trick, workaround? I found a source to reconnect
or change the connection via vba code, now I want to prohibit Access to
start a connection on startup as this takes too much time.

My experience with ADPs is that they open quickly unless the connection
errors out, not being able to find the Server, Database, or having
problems with User ID or Password. This can take forever.

In any case, why would connecting through code be faster than default
connecting?

The Connection Objects made available to us through VBA are copies of
the ADP's Connections. We can close or disonnect these copies, but this
has no effect on the information used to connect; it persists. We can
cause this information to change by reconnecting or changing the
connection, but the persisted information is simply replaced by our new
information.

We could create a new ADP, not connect it to anything, import all the
objects from the old ADP; then we would have what you want. But as soon
as we established a connection, the connection information would
persist and at next Open, the ADP would try to connect.

I have experimented with ADPs with no connection (never had a
connection) using ADO recordsets (with their own ADO connections having
nothing to do with the project other than they are created in code) for
forms and reports. In my opinion, because of Security concerns, these
are the only kind of ADPs that should be used in a situation where any
data on the Server is important or crucial and where there are users
beyond me. These ADPs are completely capable and, actually pretty
wonderful applications. To some extent they combine the joys of bound
and unbound. But development time is expanded by a factor of at least
two for me and I am a experienced coder and a experienced ADP
developer. For others the factor might be more, or things might not
work at all.

My guess is that it is not your connection which is taking so long at
startup. I would suggest that you carefully examine everything you do
at startup to see if there is not something else that is slow. Errors
can be problematic when code handles them; sometimes Access will churn
for a long time before it decides to move on.
Aug 9 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: JM | last post by:
Good day. I was able to connect to a database server using SQL Server Enterprise Manager. The Server name specified on the tree is JOMARGON(Windows NT). But no server was detected using either...
3
by: colin.anderson | last post by:
Hi I am trying to refresh table links at startup in an Access 2002 application. The following code is based on a number of articles posted in this group but this does not seem to work: ...
1
by: cybertof | last post by:
Hello, Is there a way to connect (through automation) a c# application to a running Excel 2003 instance on a specific workbook ? In the past, i used to use GetObject(...) function in VB6. ...
1
by: Alex Hardin | last post by:
Hey, I'm trying to use the connect to database wizard to connect to a MySQL database on my web server, 66.235.193.45 (I'm actually not sure if that points specifically to my part of the server, if...
4
by: shsandeep | last post by:
I am unable to connect to the database on the server from the client. It gets connected at the server. I tried the following options: - export/import profile using CA - manually add database...
2
by: daft | last post by:
Hi guys Following on from an issue a couple of years back, now archived: http://www.thescripts.com/forum/thread208561-tabledef.connect.html I'm having the same problems. I can update the...
8
by: metalheadstorm | last post by:
ok ive set up a connection between my access db ( 97) and my vb6 interface and this is what i got form_load Data6.DatabaseName = App.Path & "\cjmillers.mdb" Data6.RecordSource = "select * from...
3
by: yawnmoth | last post by:
I'm trying to connect to an Active Directory server and am having some difficulties. Here's the code I'm using: <?php if (!($ldap = ldap_connect('domain.tld')) { exit('unable to connect'); }...
0
by: DKn | last post by:
Hello All, I am doing one C#.Net(2.0) Windows application having treeview control, with some tree nodes like "Logical disk, Memory, CPU, CDROM drive, etc.." On treeview After select event, on...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
marktang
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
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,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.