Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    RyanP is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    60

    Subjective Ranking within an Array


    I reviewed a few ways to rank based on calculations and use them, however what I'm looking to accomplish is subjective ranking whilst limited the ranks to the total number of records in the recordset.

    e.g. you have 50 records. Manually moving Record # 30 up to #3 would bump the existing records #3 to #29 down one (to #'s 4 through 30) and records >30 would stay the same.

    Would deploy this to the end users within a continuous form, each row having Up/Down arrows to move each record up/down 1 rank as well as provide a combo box so they may choose any value within the array they want to set it to...

    simple?

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    Add a field to the recordset -number datatype. Let user populate the field with a value indicating his/her ranking of the record within the recordset.
    Sort recordset by User Ranking field to show ranking in rank order.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,643
    Not simple to do programmatically. I have seen this topic before.

    Why would you want this feature?

    Besides, not practical with multi-user db.
    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
    RyanP is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    60
    We do calculated ranking but the evaluation system is not 100% perfect or all encompassing (There are a plethora of outside factors that are either too difficult to apply an algorithm too, or just not well suited for calculated ranking).

    So, we want the decision makers to be able to make their own picks/ordering regardless of the calculated rank (they are doing this already in excel exports).
    e.g. Calculated Rank = 3ofX. Pick = 1ofX

    Not worried about multiple users in this scenario, as it would typically be a committee of decision makers running the selection process . I presumed that the "picks" table would be its own separate table as this function would need to lock the entire recordset.

  5. #5
    RyanP is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    60
    Quote Originally Posted by orange View Post
    Add a field to the recordset -number datatype. Let user populate the field with a value indicating his/her ranking of the record within the recordset.
    Sort recordset by User Ranking field to show ranking in rank order.
    This method would allow for duplicates and would not move the value of all the other records. e.g. If I select value = 2, this would not add 1 to every value that is 2+...
    Last edited by RyanP; 08-14-2015 at 10:10 AM. Reason: add quote

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    Ryan,

    My interpretation was that a user/client could modify/apply the "subjective" rankings. Instead of moving records(rankings) with each user entry, just provide a field for that user/client to rank the records according to their "subjective criteria". In this simple set up, I allowed for that user/client to rank all records. (You could certainly add code to add incremental/sequential numbers and to enforce No Ties.
    Numbers start at 1, max is RecordCount, field has No Duplicates)

    What exactly do you want to achieve? Why does it have to be with Up/Down arrows?
    Does a user/client see someone else's rankings, or do they "subjectively" rank records independently?

    If there are other conditions, then please list them.

  7. #7
    RyanP is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    60
    Quote Originally Posted by June7 View Post
    Not simple to do programmatically.
    Figured Microsoft would make it easy... This function is technically already built into Access in a few places (via drag and drop mind you; Tab Order, Table Design) And in Excel - Chart Data Sources - Legend Entries.

  8. #8
    RyanP is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    60
    Quote Originally Posted by orange View Post
    Numbers start at 1, max is RecordCount, field has No Duplicates
    Yes.


    Quote Originally Posted by orange View Post
    Why does it have to be with Up/Down arrows?
    I thought of this optional method based on having seen it used before... Figured that it may be more user friendly if the list is short. Not 100% required if I can get setting it via manually entering the value into a text box (or selecting from a combo box).
    This method would be limited to only moving one value in the ranking at a time (taking the adjacent higher/lower rank and modifying the other accordingly).

    Quote Originally Posted by orange View Post
    Does a user/client see someone else's rankings, or do they "subjectively" rank records independently?
    Independently. Others would view them (but only via read-only snapshot recordsets)

    Quote Originally Posted by orange View Post
    If there are other conditions, then please list them.
    None... RE: Usage - Subjective Ranking is the primary purpose. The other would be manually setting the order of lists (e.g. they have added 6 references to a record and want them to be displayed in a particular order that is not something as simple as alphabetical, or date added etc...Then, when they run a report on the main record, the references in the subreport would then be ordered according the 'rank' or 'display order' they set in the form.

  9. #9
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    Can you post 5 -6 records to show Where/How subjective ranking would be applied?

    I'm sort of visualizing:

    Here are 10 records /statements

    please rank them in importance to you 1 is most ---10 is least.

  10. #10
    RyanP is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    60
    Quote Originally Posted by RyanP View Post
    This function is technically already built into Access in a few places
    This functionality is in the Page Indexes too

  11. #11
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,643
    Yes, Access manages adjusting ranking for some properties and the algorithm can't be simple. Unfortunately there is no intrinsic feature for developers to use on data.

    I know I've seen threads on this same topic but finding them again is a challenge.

    This article seems to describe similar issue http://www.fontstuff.com/mailbag/qaccess02.htm
    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.

  12. #12
    RyanP is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    60

    example as requested

    Quote Originally Posted by orange View Post
    Can you post 5 -6 records to show Where/How subjective ranking would be applied?

    I'm sort of visualizing:

    Here are 10 records /statements

    please rank them in importance to you 1 is most ---10 is least.
    Click image for larger version. 

Name:	Capture.PNG 
Views:	12 
Size:	10.3 KB 
ID:	21660

    1234567890 characters

  13. #13
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    See the code in the form and buttons in this link from Chip Pearson. This should give some vba options.

    I am not an Excel person, but you can see the(vba) in functions associated with each of his many buttons.
    Attached Thumbnails Attached Thumbnails MoveUpDownInList.jpg  

  14. #14
    RyanP is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    60
    Quote Originally Posted by orange View Post
    See the code in the form and buttons in this link from Chip Pearson.
    Thanks... the completeness and complexity of the code was a bit above me... Regardless, I will refer to and/or use this in the future I'm sure.

  15. #15
    RyanP is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    60

    Came up with this last night... not so elegant but seems to work...

    (Example DB attached)

    Managed via the form. Required 3 queries.
    I am not explicitly limiting the values to Numbers start at 1, max is RecordCount, field has No Duplicates, Must be contiguous

    Just assuming the values will stay limited to this via the logic between the form & queries... (Logic doesn't keep from going beyond the max of the recordset or using 0).
    Obviously, would turn warnings off to use this in production...
    Attached Files Attached Files

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Ranking Duplicates
    By guesswhat91 in forum Queries
    Replies: 2
    Last Post: 09-27-2014, 07:55 PM
  2. Help with Ranking
    By Mbithy in forum Queries
    Replies: 3
    Last Post: 08-05-2012, 10:21 PM
  3. Ranking
    By mrbabji in forum Queries
    Replies: 1
    Last Post: 04-19-2012, 10:33 AM
  4. Ranking (Look for previous ranking)
    By leobear in forum Queries
    Replies: 3
    Last Post: 01-10-2012, 05:58 PM
  5. Ranking and assigning a Value
    By loopyl00 in forum Access
    Replies: 0
    Last Post: 01-11-2011, 12:14 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