Results 1 to 8 of 8

Thread: sorting recordsets

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2003
    Posts
    81

    Unhappy sorting recordsets

    hello all ;P

    this didnt work

    Public Function SortGrid()

    If cboSortOn.ListIndex = 0 Or cboSortOn.ListIndex = -1 Then
    rsEquivalents.Sort = "Product Name"
    Else
    If cboSortOn.ListIndex = 1 Then
    rsEquivalents.Sort = "Standard Pack Price Excl VAT"
    End If
    End If

    End Function


    it gave me this error

    arguments are of the wrong type, are out of acceptable range, or are in conflict with one another

    can anyone help me ?

    thanx
    ----------------------------------------
    ÖÖ two hungry cookie monsters

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: sorting recordsets

    Hi dan,

    rsEquivalents.Sort = "Standard, Pack, Price, Excl, VAT"

    Separate your values with commas.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Nov 2003
    Posts
    81

    Talking thank you

    twas one variable name so i put it in [Standard Pack Price Exl VAT]
    and it worked.

    thank you
    did my game work for you?
    ----------------------------------------
    ÖÖ two hungry cookie monsters

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Nov 2003
    Posts
    81

    Unhappy currency data type??

    how do i sort on currency, ie not alphabetically?

    i would like

    10
    15
    20
    30
    100
    105

    not

    10
    100
    105
    20
    30
    ----------------------------------------
    ÖÖ two hungry cookie monsters

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    How are you sorting?

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Nov 2003
    Posts
    81

    Cool ascending as shown above

    ----------------------------------------
    ÖÖ two hungry cookie monsters

  7. #7
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Hmm... it works fine for me.

    Does it work if the field is numeric?

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Nov 2003
    Posts
    81

    Unhappy hmm :)

    the field is currency eg R1,00 R100,00 R2,00

    it sorts it in that order... which is the wrong order

    thanx
    ----------------------------------------
    ÖÖ two hungry cookie monsters

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width