isladogs
Access MVP / VIP
- Local time
- Today, 21:34
- Joined
- Jan 14, 2017
- Messages
- 19,347
The Report shows Sorted by AuthorizationID [The PK] not by AuthorizationDate as it should, I've checked all the code that goes from the form to the report, and as well the Query "qryAuthorizationAllForReport" and I don't see where the sort is changed to the PK instead of the AuthorizationDate, I'm baffled.
True - but that's nothing to do with my changes - this would also have been the case in the original database you uploaded.
By default, reports ignore any sorting in the data source - whether form or query
However they have their own very powerful sorting and grouping feature which is applied in design view.
If this feature isn't used, the report is automatically sorted by the first field - in your case the PK field AuthorizationID
To fix this, open the report in design view, right click and select Sorting and Grouping then enter the required details
I've done this for you in version 4 attached
Any additional sorting done in the form is still transferred to the report as it uses the same record source
I've tweaked the SortedBy textbox on the report accordingly
Hopefully this now behaves as you want.