Results 1 to 2 of 2
  1. #1
    TejaGrand is offline Novice
    Windows 10 Access 2016
    Join Date
    Aug 2020
    Posts
    1

    Advanced sort in an Access Report.

    I am a user of Access, but not very good at itand I have encountered something that is giving me a migraine.


    Here's the sitch:
    I have 5 tables.
    Click image for larger version. 

Name:	5tbl.JPG 
Views:	13 
Size:	64.2 KB 
ID:	42833
    Each Area has ReportNos which have a number ofFindingNos and each finding has a number RecommendationNos. EachRecommendationNo has a Calculated Target Completion Date. The RecommendationNois not always completed on time, so they are given a Calculated Followup datefor each time they have to follow Up.

    The users of this database want a calculatedfield we have named "Disposition" which will compare the[tblRecommendation].[Calculated Target Completion Date] to the[tblFollowupPeriod].[Calculated Followup] and return with "OnSchedule" or "Past Due." I have created that in the query andits working fine.
    Here's how the datasheet looks:
    Click image for larger version. 

Name:	datasheet.JPG 
Views:	13 
Size:	76.6 KB 
ID:	42834
    HERE IS MY ISSUE. In their report, they want theArea at the top, and then they want the report numbers with any "PastDue" dispositions to be listed at the top of the report, and those with noPast Due dispositions at the end of the report.
    For example:
    Click image for larger version. 

Name:	sort order.JPG 
Views:	13 
Size:	17.6 KB 
ID:	42835
    Here's my current report. How would I sort it toget the above results?? Its driving me nuts. THANK YOU!!
    Click image for larger version. 

Name:	report.JPG 
Views:	13 
Size:	77.1 KB 
ID:	42836



  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    If you want to provide db for analysis and testing, follow instructions at bottom of my post.

    I think need to calculate a field that indicates whether there are any past due recommendations for each report number. One way is with DCount() or DLookup() domain aggregate function.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Sort on a Group Footer in Access Report
    By Alaska1 in forum Access
    Replies: 2
    Last Post: 10-30-2018, 06:35 PM
  2. Replies: 2
    Last Post: 11-30-2016, 06:09 PM
  3. Advanced Sort of Report
    By Mpike926 in forum Access
    Replies: 7
    Last Post: 08-29-2012, 11:59 AM
  4. Replies: 5
    Last Post: 08-24-2010, 02:32 PM
  5. Advanced Report Filter
    By bigdan5428 in forum Reports
    Replies: 1
    Last Post: 05-08-2010, 08:17 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums