>Hello from Bosnia,
>Here is my problem..
>I need to check and in case System DSN ODBC doesn't exist to create it.
>I found ODBC32.dll API call on the Internet that creates USER DSN.
>So, is it possible to create System DSN ODBC in VB(6) and HOW??
A much easier way to do is to always create (even if it is already existing) a user DSN using DBEngine.RegisterDatabase or RDOEngine.rdoRegisterDatabase. It is much faster to always re-create it than to validate for presence!
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com