G
Gerry Verschuuren
In Access 2007 VBA, I try to sort a Report by using OrderBy. These are the
steps:
1. In a form, a button click calls the report with the sort field in OpenArgs
Sub cmdOne_Click()
DoCmd.OpenReport sReport,,,sFilter,,sSort
2. In the report, I try to sort the field as passed thru OpenArgs:
Sub Report_Open()
Me.OrderBy = OpenArgs
Me.OrderByOn = True
Why do I not get the proper sorting order?
Thanks in advance for your response.
Gerry
steps:
1. In a form, a button click calls the report with the sort field in OpenArgs
Sub cmdOne_Click()
DoCmd.OpenReport sReport,,,sFilter,,sSort
2. In the report, I try to sort the field as passed thru OpenArgs:
Sub Report_Open()
Me.OrderBy = OpenArgs
Me.OrderByOn = True
Why do I not get the proper sorting order?
Thanks in advance for your response.
Gerry