The following code is what I am using now, it is very inefficient but it gets the job done.
Function strGetValue(strName as string) as string
dim intCount as integer
intCount = me.controls.count
strGetValue = ""
do while intCount > 0
intCount = intCount - 1
if me.controls(intCount).name =...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.