Results 1 to 8 of 8
  1. #1
    Mpike926's Avatar
    Mpike926 is offline Advanced Beginner
    Windows 7 32bit Access 2010 64bit
    Join Date
    May 2012
    Location
    Florida
    Posts
    43

    Advanced Sort of Report

    Thanks for taking the time to read. Ill do my best explaining.
    I have a report that lists all of our assets on a portfolio basis
    There are some assets that are related (could be a first and second mortgage for example) and there is a field that the asset manager fills in to relate them together. for example they could assign the related assets a value of CO5 and then in the report, when I sort by the RelationshipID field, it puts them all together.
    How the report is set up right now to first sort by relationship Ids, and then after all of the relationships, sort by highest to lowest unpaid balance.
    what I would like to do is start sorting by UPB but mix the relationships in between where they fit.
    Lets say I have these assets
    Asset-UnPaid balance
    Ada Inc -2,000,000


    1201 S Western-1,000,000
    Colony Corporate 1,250,000
    Colony Corporate 125,000

    The two colony corps are related, right now the table would sort in this order (by relationship first then all others highest to lowest UPB)
    Colony Corporate 1,250,000
    Colony Corporate 125,000
    Ada Inc -2,000,000
    1201 S Western-1,000,000.

    My question is how would I get it to sort like this
    Ada Inc -2,000,000
    Colony Corporate 1,250,000
    Colony Corporate 125,000
    1201 S Western-1,000,000.
    etc.
    So that way the balance is in decending order while also keeping the relationship group together?
    I dont even know if this can be done, but if you have any input feel free to share
    thanks again!
    -Matt

  2. #2
    Mpike926's Avatar
    Mpike926 is offline Advanced Beginner
    Windows 7 32bit Access 2010 64bit
    Join Date
    May 2012
    Location
    Florida
    Posts
    43

    Sort while keeping Groups together

    Hi I want to sort a report by Highest to lowest UPB while keeping related loans together. The related loans have a relationship Id that groups them together,
    However, my report breaks our each related loan individually instead of grouping them all together and continuing on with the report.
    Does anyone know how to achieve these results?
    More or less Im looking for highest to lowest upb, and if a relationships greates UPB comes some where in the middle of the report, I want the whole group to be placed there accordingly.
    Thanks for the help

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,648
    Is this the same db from your other thread? There is only one report in that db. Is it the one of interest here?

    Would help testing if there were multiple borrowers and loans but you reduced the data to one record.
    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.

  4. #4
    Mpike926's Avatar
    Mpike926 is offline Advanced Beginner
    Windows 7 32bit Access 2010 64bit
    Join Date
    May 2012
    Location
    Florida
    Posts
    43
    Yes it is the same database. and there are many reports involved, and many more assets. the asset that you have is just one that I left in there (I changed amts around for obvious reasons) but yes, that is the one We are working in.
    let me send you another version with a fwe more borrowers.

  5. #5
    Mpike926's Avatar
    Mpike926 is offline Advanced Beginner
    Windows 7 32bit Access 2010 64bit
    Join Date
    May 2012
    Location
    Florida
    Posts
    43
    June, here is a database with more assets.
    I have changed critical infomation around.
    The report seems different because when i was deleting fields out of the tables to shrink it down small enough, i accidentally deleted some fields that were in the report, so I just removed them from the report as well (they dont need to be there anyways for what I am trying to accomplish)

    Basically when you look at the report, it sorts from Highest to lowest UPB. But what I want to happen when a relationship comes about, I want that relationship to group together and continue to sort accordingly.
    So looking at the report, Ada has no relationship, and its the highest UPB. which then next Mountain West, has relationship CO2. I would like all the other CO2 to come up under there, and then follow with Co21 and all of its related loans etc.
    Last edited by Mpike926; 08-29-2012 at 07:53 AM.

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,648
    If you want all the same Relationship records to list together, then must have the RelationshipID as the primary sort or grouping, then by UPB.

    If you want the Relationship groups to sort by the max UPB in each group, that is another matter.
    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.

  7. #7
    Mpike926's Avatar
    Mpike926 is offline Advanced Beginner
    Windows 7 32bit Access 2010 64bit
    Join Date
    May 2012
    Location
    Florida
    Posts
    43
    Ok makes sense. I think I may have thought of a way that I can still do this tho. What if I created a field that was called sort order, and in this field (currency field/or number) I could just put the current upb in it. the loans unpaid balance would populate into this cell, and if the loan had a relationship, the highest balance in the relationship would populate into all of the other related loans. Then I could sort by this new 'sort order' with the current upb being the next sort.
    I created an excel document to show what I am trying to explain. Can something like this be achieved via VBA? it would essentially accomplish what I need to do, and granted I could do this by hand every week, but then comes human error, and when you have 800 assets... It could take a while

    Sort Demo.zip

  8. #8
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,648
    That is the 'another matter' I alluded to. Could possibly use an expression with DMax or DSum function in query to construct a field to use for grouping criteria in report.
    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. Report - Can you sort on a formula
    By Lisa Perry in forum Reports
    Replies: 9
    Last Post: 06-07-2012, 03:42 PM
  2. report grouping and sort
    By Meccer in forum Access
    Replies: 1
    Last Post: 01-05-2011, 08:30 AM
  3. sort data in the report
    By rawandjamal in forum Reports
    Replies: 1
    Last Post: 12-23-2010, 07:07 PM
  4. Advanced Report Conditional Format
    By MrHoliday in forum Forms
    Replies: 2
    Last Post: 08-25-2010, 11:58 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