Thank you Sergey, this worked perfectly for my needs. I even modified the FindUserDSN() method to also check the System DSNs for a DSN name if one is not found in the User DSN section of the Registry.
Joel
>>Is there a Windows API that I can use from my VFP code to test if an ODBC DSN exists? For example, say I have an ODBC DSN called "TrackingDB", how can I test to see if there's an ODBC connection created for this data base?
>
>Joel,
>
>Take a look at
ODBC DSN Class File #
9749