G
Guest
Hello, I am trying to build a form based off of a table. I have tried a
couple of different methods for adding a control at runtime and none have
work so far. I have tried:
Dim ctr as TextBox
Set ctr = Me.Controls.Add ("Form.Textbox.1","txtTest",TRUE)
Even though I've read that this should work, when ran I get a compire error
that the ".Add" method or data member is not found.
I've also tried:
Dim ctr as TextBox
Set ctl = CreateControl("frmTimeEntry", acTextBox, acDetail, , , 10, 10, 50,
10)
But get the error message: "You must be in Design view to create or delete
controls."
Any help that can be offered would be greatly appreciated.
couple of different methods for adding a control at runtime and none have
work so far. I have tried:
Dim ctr as TextBox
Set ctr = Me.Controls.Add ("Form.Textbox.1","txtTest",TRUE)
Even though I've read that this should work, when ran I get a compire error
that the ".Add" method or data member is not found.
I've also tried:
Dim ctr as TextBox
Set ctl = CreateControl("frmTimeEntry", acTextBox, acDetail, , , 10, 10, 50,
10)
But get the error message: "You must be in Design view to create or delete
controls."
Any help that can be offered would be greatly appreciated.