LittleSmudge
Programmer
I'm an Access database developer and a client has been running my apps on Windoz 2k - 2k3 for years but they can't get 2k3 licences anymore so we need to get them running on Vista
Standard structure is Access front ends all resident on user's local machines using ODBC to MySQL BackEnd on the server.
There is a DbUpdate app ( an Access database ) which sets up new machines automaticlly. It first checks that ODBC DSN connection exists and if it does not runs
However in Vista the SQLConfigDataSource fails to create the DSN
Has anyone else hit this problem ?
Any ideas for a fix ?
G LS
Standard structure is Access front ends all resident on user's local machines using ODBC to MySQL BackEnd on the server.
There is a DbUpdate app ( an Access database ) which sets up new machines automaticlly. It first checks that ODBC DSN connection exists and if it does not runs
Code:
Private Declare Function SQLConfigDataSource Lib "odbccp32.dll" _
(ByVal hwndParent As Long, _
ByVal fRequest As Integer, _
ByVal lpszDriver As String, _
ByVal lpszAttributes As String) As Long
Const ODBC_ADD_SYS_DSN = 4
Public Function CheckDSN
lngResult = SQLConfigDataSource(0, _
ODBC_ADD_SYS_DSN, _
"MySQL ODBC 3.51 Driver", _
"DSN=" & DSNName & Chr(0) & _
"Server=" & FGServerName & Chr(0) & _
"Database=" & DatabaseName & Chr(0) & _
"UseProcForPrepare=Yes" & Chr(0) & _
"Description=" & Description & Chr(0) & Chr(0))
However in Vista the SQLConfigDataSource fails to create the DSN
Has anyone else hit this problem ?
Any ideas for a fix ?
G LS