Results 1 to 4 of 4
  1. #1
    Dalagrath is offline Only a Man
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2010
    Location
    Colorado
    Posts
    45

    Sorting Ascended

    Okay, I like you guyss because you bring me knowledge, so time for some more!



    In a form I have (frmDiceRoll) I hit a button and some numbers are plopped into unbound text boxes using a Random 1-20 number. Now, my question is simple:

    Is there a way to have all of this numbers sorted by highest to lowest AND can I have the label of that number be listed next to it on the same form?

  2. #2
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Instead of plopping the numbers into unbound text boxes, cram them into an array. Do a bubble sort or quick sort, then push the sorted numbers into the unbound text boxes. Since you know the text box names, you should know the label names. Do a number to word conversion and shove the text of the number into the label.

    Here is one example of converting numbers to words:

    http://www.mvps.org/access/modules/mdl0047.htm

  3. #3
    Dalagrath is offline Only a Man
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2010
    Location
    Colorado
    Posts
    45
    I don't think you understand what I am saying.

    Button gives me 3 numbers in textfields. (e.g. 9,8,7)

    Now, I need to know the simpliest way to sort them into a table/subform on the same form from most to least. After that, I want them to use a Dlookup or relationship to show the names that belong with those numbers.

  4. #4
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    OK, you press a button and 3 numbers are generated. Are they put into unbound text boxes? You an still write a sort routine to sort the numbers

    I want them to use a Dlookup or relationship to show the names that belong with those numbers.
    I don't understand what you mean by "names that belong with those numbers".


    Would you post the code for the button?
    Would you provide an example of the numbers and the names?

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

Similar Threads

  1. Sorting and Grouping
    By mduplantis in forum Queries
    Replies: 3
    Last Post: 07-29-2010, 12:31 PM
  2. Date Sorting
    By sfoot0309 in forum Queries
    Replies: 1
    Last Post: 04-25-2010, 09:59 PM
  3. Sorting in a list box
    By bryanno in forum Access
    Replies: 1
    Last Post: 03-24-2010, 03:03 PM
  4. Need Sorting Help
    By rbpd5015 in forum Access
    Replies: 1
    Last Post: 09-28-2009, 07:39 PM
  5. Sorting in a subform
    By hraup in forum Forms
    Replies: 2
    Last Post: 08-29-2006, 12:35 PM

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