Could someone confirm what I think is the case... that dynamic control creation is NOT available in VBA (specifically, MS Access)?
If I am wrong, and it is available, would someone be so kind as to give a simple simple example, say creating a command button at load time?
example in VB...
' (i have a command button already called "cmdTests", with index 0, implying it's part of an array).
' the following will create two command buttons on a VB form.
Load cmdTests(1)
Load cmdTests(2)
cmdTests(1).Top = 100
cmdTests(1).Left = 100
cmdTests(1).Caption = "Test 01"
cmdTests(1).Visible = True
cmdTests(2).Top = 800
cmdTests(2).Left = 100
cmdTests(2).Caption = "Test 02"
cmdTests(2).Visible = True
If I am wrong, and it is available, would someone be so kind as to give a simple simple example, say creating a command button at load time?
example in VB...
' (i have a command button already called "cmdTests", with index 0, implying it's part of an array).
' the following will create two command buttons on a VB form.
Load cmdTests(1)
Load cmdTests(2)
cmdTests(1).Top = 100
cmdTests(1).Left = 100
cmdTests(1).Caption = "Test 01"
cmdTests(1).Visible = True
cmdTests(2).Top = 800
cmdTests(2).Left = 100
cmdTests(2).Caption = "Test 02"
cmdTests(2).Visible = True