Thanks for any help in advanced.
In a recent thread vbaInet helped me with the piece of code below
Whilst this works and in the report it says its being sorted in that way. it doesnt actually change from default (Date Of Work Descending) even when i tell it to go by Date Of Work Ascending
Im using Access 2010.
heres the full code (im using check boxes in a form for the user to decide how they want it to be sorted)
Thanks in advanced for any help much appreciated
In a recent thread vbaInet helped me with the piece of code below
Code:
Reports!VisitSheetTableReport.OrderBy = "[QuoteNumber] ASC"
Reports!VisitSheetTableReport.OrderByOn = True
Whilst this works and in the report it says its being sorted in that way. it doesnt actually change from default (Date Of Work Descending) even when i tell it to go by Date Of Work Ascending
Im using Access 2010.
heres the full code (im using check boxes in a form for the user to decide how they want it to be sorted)
Code:
If chkDate = True Then
Reports!VisitSheetTableReport.OrderBy = "[Date Of Work] ASC"
Reports!VisitSheetTableReport.OrderByOn = True
Thanks in advanced for any help much appreciated