Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 Ms Access 中更改拆分表单的 SQL
Dim db As Database Dim query As QueryDef Set db = CurrentDb Set query = db.QueryDefs("MyQuery") Me.query = query.SQL Me.Requery
现在操作Me.query = query.SQL有效,我已经检查过了,但它根本没有刷新结果。
Me.query = query.SQL
我认为您的意思是设置记录源:
Me.recordsource = query.SQL
顺便说一句,我会谨慎使用对象名称作为变量名称,query这不是一个好的变量名称。
query