J
johnk
I am tring to create a textbox at runtime, with this code taken from
the help file in Acess 2000.
Unfortunately creating the text boxs at design time has run into
problems.
And this code gives a type mismatch error. I don't know why. Help?
Private Sub AddDevice_Click()
Dim txtB As Control
Set txtB = CreateControl(Forms!frm_Device, acTextBox, acDetail, "100",
"100", "100", "100")
' Set ctlText = CreateControl(frm.Name, acTextBox, , "", "", intDataX,
intDataY)
End Sub
the help file in Acess 2000.
Unfortunately creating the text boxs at design time has run into
problems.
And this code gives a type mismatch error. I don't know why. Help?
Private Sub AddDevice_Click()
Dim txtB As Control
Set txtB = CreateControl(Forms!frm_Device, acTextBox, acDetail, "100",
"100", "100", "100")
' Set ctlText = CreateControl(frm.Name, acTextBox, , "", "", intDataX,
intDataY)
End Sub