G
Guest
I want a parameter to capture the field name, and then use the /parameter as
an argument to a function. I can't figure out the syntax.
PARAMETERS fField Text;
SELECT Max(fField) as MaxValue
FROM myTable;
If I enter "Age" as the field, the query returns Age as the value in
MaxValue, where I wanted the Max of the Age field, not the string.
What's the magic voodoo syntax to pull this off.
Thanks
Jim
an argument to a function. I can't figure out the syntax.
PARAMETERS fField Text;
SELECT Max(fField) as MaxValue
FROM myTable;
If I enter "Age" as the field, the query returns Age as the value in
MaxValue, where I wanted the Max of the Age field, not the string.
What's the magic voodoo syntax to pull this off.
Thanks
Jim