D
Dr. Know
Used to program extensively in Clipper S87 (!)
I have been using Access for a couple of weeks.
I have run into a problem when using public/privately declared
variables in queries and text boxes. I figured a work around, using a
function to retrieve the variable value, and it works OK.
Now I would like to create a function that would return the value of a
variable name passed to it. In Clipper, preceding the name with &
would work, but not in Access. Is there an Access equivalent??
The function would be something like this:
Public Function GetVar( varname as string) as variant
getval = &varname
end function
i.e. - var1 = "this" var2 = "that"
GetVar("var1") returns "this
GetVar("var2") returns "that"
Is this possible?
I'm still trying to get over the grief involved in highlighting a
record row without enduring screen flickering and ridiculous,
convoluted code...
Thanks,
Dr. Know
I have been using Access for a couple of weeks.
I have run into a problem when using public/privately declared
variables in queries and text boxes. I figured a work around, using a
function to retrieve the variable value, and it works OK.
Now I would like to create a function that would return the value of a
variable name passed to it. In Clipper, preceding the name with &
would work, but not in Access. Is there an Access equivalent??
The function would be something like this:
Public Function GetVar( varname as string) as variant
getval = &varname
end function
i.e. - var1 = "this" var2 = "that"
GetVar("var1") returns "this
GetVar("var2") returns "that"
Is this possible?
I'm still trying to get over the grief involved in highlighting a
record row without enduring screen flickering and ridiculous,
convoluted code...
Thanks,
Dr. Know