J
JohnH
Ok maybe someone can help me with this. I've designed a form that
acts as a wizard for report creation. One one of my wizard screens
I've implemented an Order By group of combo boxes almost identical to
the screen found in the actual Report Creation Wizard.
Each combobox's rowsourcetype is 'field list' and the rowsource is a
query that uses aliases for field names so that the combobox's
dropdown choices will make sense (Date Entered, Date Sold, Last Name,
First Name, etc).
The report creation happens in the Report_Open event where I apply a
custom filter (and now Order By) to the report's record source by
piecing together the user choices in my report creation wizard, which
are passed to this report in the OpenArgs.
My problem is resolving the user's choice, which is an alias, to the
field name so that I can generate the Order By string on the fly in
VBA. How do I do this?
Thanks in advance.
John
acts as a wizard for report creation. One one of my wizard screens
I've implemented an Order By group of combo boxes almost identical to
the screen found in the actual Report Creation Wizard.
Each combobox's rowsourcetype is 'field list' and the rowsource is a
query that uses aliases for field names so that the combobox's
dropdown choices will make sense (Date Entered, Date Sold, Last Name,
First Name, etc).
The report creation happens in the Report_Open event where I apply a
custom filter (and now Order By) to the report's record source by
piecing together the user choices in my report creation wizard, which
are passed to this report in the OpenArgs.
My problem is resolving the user's choice, which is an alias, to the
field name so that I can generate the Order By string on the fly in
VBA. How do I do this?
Thanks in advance.
John