Hi,
Is there any way of, having looked up a String value from a table, evaluting it in visual basic. It seems the eval function isnt sufficient to eval commands such as
It's tricky, but you could loop thru all of the controls on the form, find the one you want by name (you would have to parse the string to extract the name). Then by setting an object you should be able to update the text/value property.
An alternative would be to set up a case structure so that you can select the appropriate case by the name of the control (parsing is still up to you) and set the property within the case. Something like
Code:
nValue = 2
Select Case sControlName
Case "control1"
forms!form1!control1.Value = nValue
End Select
Kind of depends on how many controls you're working with.
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.