2
我用以下:MySQL的到Excel VBA
的Excel 2013
MySQL的版本是5.0.67
的Windows 8 64位
当我连接MySQL通过excel VBA(我不需要ODBC连接),我得到了以下错误。
Error Description: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
Error at line: 0
Error Number: -2147467259
我也安装了mysql-for-excel-1.2.1。 请帮我弄清楚这个问题。
我上市代码:
cn.Open "DRIVER={MySQL ODBC 5.0.67 Driver};SERVER=localhost; PORT=3306;_
DATABASE=Sales; USER=root; PASSWORD=sys; OPTION=3;"
我有以下驱动程序的尝试:
- 的MySQL 5.0.67驱动
- MySQL的ODBC驱动程序5.0.67
- MySQL的ODBC 5.0.67 ANSI驱动程序
- MySQL ODBC 5.0.67 Unicode驱动程序
- mysql-for-excel-1.2.1
64位Office或32位?更可能与32位工作... –
你不打破在实际代码中的字符串,是吗? VBA不会让你在字符串中间断行。 – Tmdean