I don't know if this will help or not, but the problem seems to be at the first call to RegEnumValue, where I am using the API call to get the values enumerated under HKLM\Software\ODBC\ODBC.INI\ODBC Data Sources\. This should (and does when not run as an EXE) return the names of all DSNs defined as System DSNs. When I make the call, an error code of 87. (No error is displayed, I am showing the error as a MsgBox right now.)

I'm in the process of looking up this error code. Maybe it'll give me a clue as to where to start.

Thanks again!!!

Dan