I want to print a report and change the sorting and grouping variable. Sometimes I sort on the field Street and sometimes on Surname. I have tried using a global variable with no success, and cant seem to get a function to retrieve the string to work. Any suggestions