如何在vb中通过ado打开excel文件的数据
我是通过数据环境,来连接excel文件,在数据环境中已经连接通了,同时我在代码中用数据环境数据连接对象的connection1的open方法,已成功的打开了数据连接对象。
dim go_cnn as new adodb.connect
然后把数据环境打开的连接对象赋给go_cnn
dim o_rst as new adodb.recordset
dim strSQL as string
strsql="select * from t_factha "
o_rst.open strsql,go_cnn,adopenstatic,...
这个记录集打开已经成功了,但是没有数据记录数。请问各位大虾,这是什么原因啊?