>I do make a USER DSN using:
>DBEngine.RegisterDatabase "NAME", sdriver, True, sattrib
>and it works perfectly.
>
>However I would like to check whether this DSN with dsnname NAME
>already exists.
>
>Any suggestions how to accomplish that ?
I suggest that you always update the DSN. This operation is too short to justify the need of checking for existence!
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com