I am using a function to add a number of text boxes (all named differently) to a form at run time (Code listed below).
This works fine, except that when I try and extract any of the values in the boxes boxes added later using a command button event click function I get a compile error "Method or data member not found".
Does anyone have any ideas about what I am doing wrong, or what I should be doing to make this work.
Thanks in advance for any help...
Code to add text box
Function createTextbox(tmpWhere As Form, tmpLeft As Integer, tmpTop As Integer, txtName As String)
Dim txt As TextBox
Set txt = Controls.Add("VB
.textbox", txtName, tmpWhere)
.Move tmpLeft, tmpTop, 500, 200
.Visible = True
.BackColor = &H80000005
Set txt = Nothing
Code to reference text box
Private Sub cmdAddLineItem_Click()