首页 > 编程知识 正文

vba recordset,openrecordset

时间:2023-05-05 20:45:42 阅读:119202 作者:1516

建议引用对象。 我觉得这个大家都没问题。 问题是在下面的代码中没有设置对象变量

Dim Report As New GridppReport

report.detail grid.recordset.connectionstring='数据库连接字符串'

report.detail grid.recordset.querysql=" SQL语句"

修改成下面的代码就可以了。

Dim Report As New GridppReport

Report.ConnectionString='数据库连接字符串'

Report.QuerySQL=”SQL语句"

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。