Thanks Brian. This issue is resolved with a simple solution!!!


VB Code:
  1. '---------------------------------------------------------------------------------------
  2. ' Procedure : IsDriverInstalled
  3. ' DateTime  : 2004/02/25 12:48
  4. ' Author    : Administrator
  5. ' Purpose   : Checks if the uninstall key exists - this indicates that the
  6. '             MyODBC driver has been installed on the target system
  7. '---------------------------------------------------------------------------------------
  8. '
  9. Function IsMyODBCInstalled() As Boolean
  10.     Dim hKey As Long
  11.     If RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MySQL Connector/ODBC 3.51", 0, 1, hKey) = ERROR_SUCCESS Then
  12.         IsMyODBCInstalled = True
  13.         RegCloseKey hKey
  14.     Else
  15.         IsMyODBCInstalled = False
  16.     End If
  17. End Function