I am having trouble creating a textbox through VBA. It doesn't give me any errors although the textbox will not appear on the form. Can someone help me out?
Here is a sample of the code.
Set txtAppT = CreateControl("AppTitle", acTextBox, "")
' Set txtAppT = New TextBox
With txtAppT
.Name = "AppTitle"
.Height = 100
.Width = 100
.Enabled = True
.Top = 100
.Left = 100
.Visible = True
End With
Here is a sample of the code.
Set txtAppT = CreateControl("AppTitle", acTextBox, "")
' Set txtAppT = New TextBox
With txtAppT
.Name = "AppTitle"
.Height = 100
.Width = 100
.Enabled = True
.Top = 100
.Left = 100
.Visible = True
End With