I have a text box on a form that calls a function in the Control Source that i want to pass the text box's name so within the function i can set backcolor, forecolor...
I don't want to have to hard code the text box's name within the call to the function.
Public Function ELookup(textboxname as ?control?, Status As String)
If Status = "x" then
textboxname.forecolor = vbred
textboxname.forecolor = vbGreen
would i also have to pass the form name within the function?