you build a connect string and plug it into
currentproject.connnectinos.connectstring ="yourconnectstring"
if you know the server it is going to, you can hardcode this in the autoexec
or you can write some code that pulls the server that will be assigned from
the IP address of the computer that is running it.
this would be the equivalent of a small client server app. the client being
in the ADP and server being somewhere on your network.
Then you have a program that check the iP and send the correct server name
back to the ADP.
if you can do a
?currentproject.connnectinos.connectstring
you can see the properties
I also suggest you make it an ADE so someone can not do this and get the
password.