问题:
求助:ado连接mysql不能读取decimal类型字段- Dim Cnn, Rst, strCnn,d_firstPay
- strCnn = "DRIVER={MySQL ODBC 3.51 Driver};SERVER=192.168.0.210;DATABASE=TrademarkManager2;USER=trademarkmanager;password=123456"
- Set Cnn = CreateObject("ADODB.connection")
- Cnn.Open strCnn
- Set Rst = CreateObject("ADODB.Recordset")
- Rst.Open "select firstpay from adm_contract", Cnn,1,1
- Rst.MoveLast
- d_firstPay = Rst.Fields("firstpay")
- Rst.Close
- Cnn.Close
- Set Rst = Nothing
- Set Cnn = Nothing
复制代码firstpay字段类型是decimal,我试了其它类型的字段都可以取出,请问如何取出这个字段里的数据呢?
提示的错误是:[Microsoft][ODBC 驱动程序管理器] 程序类型越界
|