建议你在上传前用isnull判断是不是空值
首先将myodbc3.dll文件复制到系统下,然后将以下内容做成xxx.reg文件并运行。Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\MySQL AB\MySQL Connector/ODBC 3.51]
"Version"="3.51.24"
[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\MySQL ODBC 3.51 Driver]
"UsageCount"=dword:00000001
"Driver"="C:\\WINDOWS\\system32\\myodbc3.dll"
"Setup"="C:\\WINDOWS\\system32\\myodbc3S.dll"
[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\ODBC Drivers]
"MySQL ODBC 3.51 Driver"="Installed"
public con as NEW ADODB.Connectioncon.ConnectionString="provider=Microsoft.Jet.OLEDB.3.51" "Data Source=C:\DB.mdb"
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)