I've got a couple questions.
I'm trying to update a VB program of mine that accesses MS Access as a Database.
The database is sorted by one column, and I want it to be able to read the top 10 "rows" after that sort, but I have no idea how to do it. The only SQL I have ever written, if I could call it that, was copied and edited to my needs. I can understand and edit simple coding, but I have no education as to write it myself.
I'm looking to do 3 things:
Find the top 10 sorted by Column A, and grab info from Columns A,B,C,D.... Once finding a way to access the top 10 "rows" (Sorry, I forget the name for them) I could write code to do the rest.
2) After being sorted by Column A, I'm looking to find the "ranking" of that "row" by its spot in the sort. (If it is row 56 after the sort, it's ranking would be, say 56/150)
- So after being sorted by Column A, I want to find the "Ranking" of Column B by column A. For example, sorting 10 people by age, and then querying the name of the 2nd oldest person of the 10 people. It would return the ranking "2".
3) Lastly, I'm looking to total up all values in Column A. Is there a sum command, like excel that could do this?
I realize I am being vague, but perhaps after getting a lead, I can be more specific.
I'm trying to update a VB program of mine that accesses MS Access as a Database.
The database is sorted by one column, and I want it to be able to read the top 10 "rows" after that sort, but I have no idea how to do it. The only SQL I have ever written, if I could call it that, was copied and edited to my needs. I can understand and edit simple coding, but I have no education as to write it myself.
I'm looking to do 3 things:
Find the top 10 sorted by Column A, and grab info from Columns A,B,C,D.... Once finding a way to access the top 10 "rows" (Sorry, I forget the name for them) I could write code to do the rest.
2) After being sorted by Column A, I'm looking to find the "ranking" of that "row" by its spot in the sort. (If it is row 56 after the sort, it's ranking would be, say 56/150)
- So after being sorted by Column A, I want to find the "Ranking" of Column B by column A. For example, sorting 10 people by age, and then querying the name of the 2nd oldest person of the 10 people. It would return the ranking "2".
3) Lastly, I'm looking to total up all values in Column A. Is there a sum command, like excel that could do this?
I realize I am being vague, but perhaps after getting a lead, I can be more specific.