<%dim conn, rs set conn=server.createobject(\"adodb.connection\") conn.open \"dsn=yy;uid=popo;pwd=123\" set rs=server.createobject(\"adodb.recordset\") rs.open \"select* from counter\"%> 运行时出现以下错误错误类型: ADODB.recordset (0x800A0E7D) /web/default.asp, 第 6 行 请问是什么原因??? 我用的数据库的是sql server2000来的
[code]Set Rs = New ADODB.recordset Rs = "SELECT field1 As Name, field2 As Address FROM table union SELECT field3 As Name, field4 As Address FROM table" Set Rs->execute(sq) Range("A2").CopyFromrecordset Rs[/code]报错:方法 ‘CopyFromrecordset’作用于对象 ‘Range’时失败; 而用同样的代码,连接到ACCESS上就没有问题, 后来在微软的官方网站上查到:[code]注意:在使用 CopyFromrecordset 时,需要知道您使用的...