P
pietlinden
I have written a VBA procedure which should pick top ten students
based on
their marks from "Marks" table and put their names in another table
called
"Archives". In my VBA code I have put following SQL code:
Use a TOP VALUES query. When you get it right, turn it into an append/
make table query and you're finished. All this stuff about VBA is a
red herring. The only snag would be that you will get ties if you use
top values. If you really have to have only 10 values, then you could
open a recordset based on a querydef (look up querydef in the help).
Then loop through the recordset it returns and add the values to a
table using AddNew.
based on
their marks from "Marks" table and put their names in another table
called
"Archives". In my VBA code I have put following SQL code:
Use a TOP VALUES query. When you get it right, turn it into an append/
make table query and you're finished. All this stuff about VBA is a
red herring. The only snag would be that you will get ties if you use
top values. If you really have to have only 10 values, then you could
open a recordset based on a querydef (look up querydef in the help).
Then loop through the recordset it returns and add the values to a
table using AddNew.