M
Michel Peeters
I am sorting a report the same as a form (both have the same records)
On opening of the report:
With Forms("MyForm")
If .OrderByOn Then
Me.Order = .OrderBy
Me.OrderByOn = True
End If
End With
This worked fine in Access 2000.
In 2007 the orderby string contains all the previous sortfields; the report
does not accept this.
Is there a way to avoid this?
Michel
On opening of the report:
With Forms("MyForm")
If .OrderByOn Then
Me.Order = .OrderBy
Me.OrderByOn = True
End If
End With
This worked fine in Access 2000.
In 2007 the orderby string contains all the previous sortfields; the report
does not accept this.
Is there a way to avoid this?
Michel