S
Seth Schwarm
How can I reference a form and field with variables?
My current example is this:
my form is: fdlgSubmission
my field name is: NEPoint
I have dimensioned my variables as follows:
frm1 as Form
fld as Field
I set the value to the form variable as follows:
Set frm1 = Forms!fdlgSubmission
It works great when referencing the form and when
referencing a field such as frm1!NEPoint.
However, I want a variable to store a field by this
method:
Set fld = frm1!NEPoint
When I attempt this, I get a Run-time error '13' Type
mismatch error.
I have also tried this method:
Set fld = Forms!fdlgSubmission!NEPoint
It does not work either.
I am writing a Select statement and need to assign this
field value to a variable to have code following this
Select statement use it and complete my process.
Thanks,
Seth
My current example is this:
my form is: fdlgSubmission
my field name is: NEPoint
I have dimensioned my variables as follows:
frm1 as Form
fld as Field
I set the value to the form variable as follows:
Set frm1 = Forms!fdlgSubmission
It works great when referencing the form and when
referencing a field such as frm1!NEPoint.
However, I want a variable to store a field by this
method:
Set fld = frm1!NEPoint
When I attempt this, I get a Run-time error '13' Type
mismatch error.
I have also tried this method:
Set fld = Forms!fdlgSubmission!NEPoint
It does not work either.
I am writing a Select statement and need to assign this
field value to a variable to have code following this
Select statement use it and complete my process.
Thanks,
Seth