M
MJJ
I have a report I am using w/ a query based on the "id"
field. But I want to be able to sort on different
fields. So I create a form with radio buttons which
allows me to choose a sort I want; id, last name...etc.
What I would like to do is to put a 'variable' in the
OrderBy in the SQL stmnt and just change it in the VBA
code? Is this possible? Or should I prepare the
different queries I need and go from there? Thanks
field. But I want to be able to sort on different
fields. So I create a form with radio buttons which
allows me to choose a sort I want; id, last name...etc.
What I would like to do is to put a 'variable' in the
OrderBy in the SQL stmnt and just change it in the VBA
code? Is this possible? Or should I prepare the
different queries I need and go from there? Thanks