|
Const acDesign = 1
Const acForm = 2
Set ac = CreateObject("Access.Application")
ac.OpenCurrentDatabase( document.all("TargetMDB").value )
For i = 0 To ac.CurrentProject.AllForms.Count - 1
frmName = ac.CurrentProject.AllForms(i).Name
If Not ac.CurrentProject.AllForms(i).IsLoaded Then
ac.DoCmd.OpenForm frmName, acDesign
End If
Set Prop = ac.Forms(frmName).Properties("Modal")
Prop.Value がプロパティ値
If ac.CurrentProject.AllForms(i).IsLoaded Then
ac.DoCmd.Close acForm, frmName
End If
Next
ac.CloseCurrentDatabase
| |