AccessでマクロからVBAを実行
https://access-2013.blogspot.com/2016/09/blog-post_20.html マクロからVBAを実行、プロシージャの実行を選ぶ、関数名を入力。マクロから呼び出せるのはSubではなくFunction。
Accessでフォーム自体のプロパティ一覧を
Public Sub ExportFormPropertiesToFile(ByRef frm As Form, fileName As String)
Dim prop As Property
Dim f As Integer
Dim outputPath As String
outputPath = "C:\Tmp\form_properties." & fileName & ".md"
f = FreeFile
Open outputPath For Output As #f
Print #f, "# Form: " & frm.name
On Error Resume Next
For Each prop In frm.Properties
Print #f, " " & prop.name & " = " & prop.Value
Next
On Error GoTo 0
Close #f
MsgBox "完了しました: " & outputPath
End Sub
Accessでコントロールとプロパティの一覧をVBAで出力
フォームのボタンに登録
Private Sub cmdListPropertiesAtContactForm_Click() ExportControlPropertiesToFile Me, "base" End Sub
標準モジュールに登録
Public Sub ExportControlPropertiesToFile(ByRef frm As Form, fileName As String)
Dim ctl As Control
Dim prop As Property
Dim f As Integer
Dim outputPath As String
outputPath = "C:\Tmp\control_properties." & fileName & ".md"
f = FreeFile
Open outputPath For Output As #f
For Each ctl In frm.Controls
Print #f, "## Control: " & ctl.name & " (" & ctl.ControlType & ")"
On Error Resume Next
For Each prop In ctl.Properties
Print #f, " " & prop.name & " = " & prop.Value
Next
On Error GoTo 0
Print #f, ""
Next
Close #f
MsgBox "完了しました: " & outputPath
End Sub
Accessでフォームのポップアップ
https://tasukete-access.com/2021/10/19/accessintro_popup/
フォームのプロパティのその他のポップアップを「はい」に
puppeteerでラジオボタンの2番めの要素をクリック
await page.click('input[name="gender"]:nth-of-type(2)');