T
tzigone
hi
i am trying to add textboxes to form via vba.
i am firstly closing the form and then open it in design form, then
trying to add textbox. hovewever runtime error 29054 occurs and says
access can't add, rename or delete controls you requested.
what should i do?
code is like this
DoCmd.Close
DoCmd.OpenForm "Form1", acDesign, , , acFormEdit, acWindowNormal
Dim ctl As Control
Set ctl = CreateControl("Form1", acTextBox, acDetail)
i am trying to add textboxes to form via vba.
i am firstly closing the form and then open it in design form, then
trying to add textbox. hovewever runtime error 29054 occurs and says
access can't add, rename or delete controls you requested.
what should i do?
code is like this
DoCmd.Close
DoCmd.OpenForm "Form1", acDesign, , , acFormEdit, acWindowNormal
Dim ctl As Control
Set ctl = CreateControl("Form1", acTextBox, acDetail)