Sub Sample() Dim mymydb As Database Set mydb = CurrentDb Debug.Print "すべてのクエリ名を出力します" For Each myqer In mydb.QueryDefs Debug.Print myqer.Name Next End Sub
Sub Sample() Dim mymydb As Database Set mydb = CurrentDb Debug.Print "すべてのクエリ名を出力します" For Each myqer In mydb.QueryDefs Debug.Print myqer.Name Next End Sub