Getting rid of connection strings?

M

Maury Markowitz

Access 2003 / ADP

One complaint I have with Access is that any SQL lookup requires a
connection string to be provided. I don't like this because I have already
done this by setting up the Connection... properties (in the file menu). This
means there is two points of failure, it's easy to change one and not the
other(s).

Is it possible to not use a connection string, or use the string defined by
the Connection... dialog? For instance, is there a
Application.defaultConnection or something to that effect?

Maury
 
B

Brendan Reynolds

Do you mean CurrentProject.Connection?

--
Brendan Reynolds (MVP)
http://brenreyn.blogspot.com

The spammers and script-kiddies have succeeded in making it impossible for
me to use a real e-mail address in public newsgroups. E-mail replies to
this post will be deleted without being read. Any e-mail claiming to be
from brenreyn at indigo dot ie that is not digitally signed by me with a
GlobalSign digital certificate is a forgery and should be deleted without
being read. Follow-up questions should in general be posted to the
newsgroup, but if you have a good reason to send me e-mail, you'll find
a useable e-mail address at the URL above.
 
Top