Is there a simple way to dynamicly reference the value in a control on a form if all I know is the name of the control?
this doesn't work:
me.controls(strControlName).value
I want to do something like this:
sub doSomething(strControlName as string)
if me.controls(strControlName).value > 50 then
msgbox "Value to large",,"Error"
end if
end sub
this doesn't work:
me.controls(strControlName).value
I want to do something like this:
sub doSomething(strControlName as string)
if me.controls(strControlName).value > 50 then
msgbox "Value to large",,"Error"
end if
end sub