标题: 这个代码为何出错? [打印本页] 作者: cyber-bobo 时间: 2007-12-6 01:57 标题: 这个代码为何出错? Dim Rs2 As New ADODB.Recordset
Dim Rs As New ADODB.Recordset
Dim Conn As New ADODB.Connection
Set Conn = CurrentProject.Connection
Rs.Open "select * from 表3", Conn, adOpenDynamic, adLockOptimistic '(这句中的表3是一个表,没问题!)
Rs2.Open "select * from 查询1", Conn, adOpenDynamic, adLockOptimistic '(这句中的查询1是一个查询结果,会出现语法错误的提示!)