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