I open an About Form when the application starts which calls all of my
startup routines (menus, options etc). After three seconds its visible
property is set to false and it opens a custom login form. The user
then selects the connection they want. In the unload event of the
About Form I set the CurrentProject.OpenConnection "Provider=" (along
with cycling through and closing any open objects) which causes the
adp to become disconnected, so next time its started there is no
connection prompt.
This works well, except when the application terminates abnormally, in
which case the user is prompted the next time it is restarted (I
advise the user to press cancel and ignore the prompt).
It would be nice if there were an easier way of starting an adp in a
disconnected state.
> I do use this - however, access attempts to connect as soon as the ADP is
> opened in Access - even before any startup/autoexec stuff happens.
[quoted text clipped - 47 lines]
> >>
> >> Chris Newman
Chris Newman - 21 Feb 2005 22:09 GMT
Thanks for the tip Adam. I might give that a go and see if I can persude
Access to behave for 5 minutes!
Chris
>I open an About Form when the application starts which calls all of my
> startup routines (menus, options etc). After three seconds its visible
[quoted text clipped - 71 lines]
>> >>
>> >> Chris Newman