What function returns the column name not value?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a function which compares two values. If value1 > value2 then it
returns value1, howevere when value1<value2 I want it to return the column
name not the value. Is there a simple way to do it?
 
I'm not sure what you are asking for, when you compare the two fields you
already know the name, so return it

If value1 > value2 then
FunctioName= value1
else
FunctioName= "value2"
end if

Can you post the function you have?
 
Back
Top