|
-
Dec 8th, 2003, 08:50 AM
#1
Thread Starter
Lively Member
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
-
Dec 8th, 2003, 08:54 AM
#2
Re: sorting recordsets
Hi dan,
rsEquivalents.Sort = "Standard, Pack, Price, Excl, VAT"
Separate your values with commas.
-
Dec 8th, 2003, 09:12 AM
#3
Thread Starter
Lively Member
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
-
Dec 8th, 2003, 09:23 AM
#4
Thread Starter
Lively Member
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
-
Dec 8th, 2003, 11:31 PM
#5
-
Dec 9th, 2003, 02:42 AM
#6
Thread Starter
Lively Member
ascending as shown above
----------------------------------------
ÖÖ two hungry cookie monsters
-
Dec 9th, 2003, 05:51 AM
#7
Hmm... it works fine for me.
Does it work if the field is numeric?
-
Dec 9th, 2003, 08:49 AM
#8
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|