![]() |
![]() |
フォーム系 - フォームのレコードソースを収集する | |
カレントデータベース内にあるフォーム名の一覧とともに、それぞれのフォームのレコードソースを収集します。
Sub Sample_3_03() 'フォームのレコードソースを収集する Dim dbs As Database Dim ctn As Container Dim doc As Document Dim strFormName As String Set dbs = CurrentDb Set ctn = dbs.Containers!Forms For Each doc In ctn.Documents strFormName = doc.Name DoCmd.OpenForm strFormName, acDesign Debug.Print strFormName, Debug.Print Forms(strFormName).RecordSource DoCmd.Close acForm, strFormName, acSaveNo Next doc End Sub 実行例:
![]() ![]() |
|||
|
Copyright © T'sWare All rights reserved | ![]() ![]() |