Greatest Values Questions
.Source = "Select TOP 5 [Name],[StuDiff] From QryCover WHERE (((QryCover.StuDiff)>=2)) OR (((QryCover.StuDiff)<=-2)) ORDER By ABS([StuDiff]) DESC"
I can get the numbers but now it needs to be in name order and not studiff. If I put it in name order then I get the...
Here is a example of my database can someone please look at it and tell me how to get the top 5 values from the query. not the first 5 highest but the highest out of all the data.
Greatest Value Question
I still don't see the -5 value I need.
Out of the top 5 it comes out at number 7 behind
Showing up now:
-2
2
-2
2
-8
next 3 that will show up:
-2
-5
-2
As you can see that the -5 should show up in the list.
Greatest Values
ok here is and example:
I have
0
-1
-2
-8
-4
-5
-6
-7
-8
-8
-9
-9
-1
0
-2
-3
Out of that I need to get -7 -8 -8 -9 -9 and not just get the first 5 values.
Greatest Value Question
That is not the problem, the problem is that I have about 94 records in the field and it is getting the first 5 it comes to that are >=2 or <=-2.....
it finds now:
-2
+2
-2
+2
-8
And then in a field about 20 down from the last I see a -5....I need to know how to get...
If I using this line of code to try to pull out the top 5 values from a query:
.Source = "Select TOP 5 [Name],[SupDiff] From QryCover WHERE (((QryCover.SupDiff)>=2)) OR (((QryCover.SupDiff)<=-2)) ORDER By [Name]"
It works fine but what I need to know is how to find the greatest vlues in the...
How can I sort this code ascending or descending order?
.Source = "Select TOP 20 [Name],[Alloc],[Total] From QrySML WHERE QrySML.Alloc>=100 ORDER By [Alloc]"
Where would I put the sort order?
Can someone help me convert this code to ADO form DAO please?
Function GetPermissions()
Dim TheDb As Database
Dim TheTable As Recordset
Dim TheForm As Form
Dim TheGroup As String
Dim TheUser As String
TheUser = "Username = '" & CurrentUser() & "'"
Set TheDb =...