Microsoft access table refresh
am 06.10.2006 19:55:22 von DHuhncke------_=_NextPart_001_01C6E970.980861FC
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Microsofts latest release of msjet40.dll (version 4.0.9025) which is
included in Windows server 2003 SP1 causes msaccess to crash when
performing a table refresh/relink to mysql tables using MyODBC 3.51.12.
This has been confirmed using a windows 2003 server without SP1
msjet40.dll (version 4.0.86180) msaccess relinks mysql tables
successfully. This is a big problem and causes us great concern,
since it appears Microsoft again is tweaking their software to force us
down the sql server path. I have put a call into Microsoft and asked
them for a work-around or fix since removing SP1 would only be a
temporary fix. I would also like to know if Mysql can tweak their ODBC
driver or find out what MS has done to cause this problem and fix it.
Here is VB that relinks Mysql tables and works using msjet40.dll
(version 4.0.86180) but fails with (version 4.0.9025)=20
Sub Link_Refresh()
Dim strUserID As String, strPassword As String, dbname As String
strUserID =3D "chronoCon"
strPassword =3D "chronoCon"
dbname =3D "CHRON20_D"
str1 =3D "DRIVER=3D{MySQL ODBC 3.51
Driver};SERVER=3Ddocr1929.doc.nd.gov;DATABASE=3D" & dbname & ";USER=3D" =
_
& strUserID & ";PASSWORD=3D" & strPassword & ";OPTION=3D35;"
=20
Dim curDb As Database
Dim tdfLinked As TableDef
' Create a reference to the linked table
Set curDb =3D CurrentDb
Set tdfLinked =3D curDb.TableDefs("Tbl_Contacts")
=20
' relink the table connection to Mysql
tdfLinked.Connect =3D str1
tdfLinked.RefreshLink
End Sub
Thank you.=20
David Huhncke
Director Information Systems
ND Dept. Of Corrections & Rehabilitation
701 328-6361
701 527-0234 (cell)=20
------_=_NextPart_001_01C6E970.980861FC--