G
Guest
Hi,
Is it possible to create dynamic controls (text boxes and labels) on an
Access form. The Access help only mentions ControlBars, although VB allows
for more controls.
Using
Dim txt As TextBox
For i = 1 To dbRes.RecordCount
Set txt = Controls.Add("TextBox", "txt" & CStr(i))
txt.visible = True
Next i
results in an 'Object required' error message.
Thanks in advance for any help on this.
APS
Is it possible to create dynamic controls (text boxes and labels) on an
Access form. The Access help only mentions ControlBars, although VB allows
for more controls.
Using
Dim txt As TextBox
For i = 1 To dbRes.RecordCount
Set txt = Controls.Add("TextBox", "txt" & CStr(i))
txt.visible = True
Next i
results in an 'Object required' error message.
Thanks in advance for any help on this.
APS