Access hangs on Ranking

SKV

Active Member
Joined
Jan 7, 2009
Messages
257
I am trying to rank 48000 rcds and on running query Access just hangs.

Any suggestions to overcome this situation? I can reduce my records but dont wat to if possible.

Any other suggestion for ranking these many records?


thanks
SKV
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
What is the logic for "ranking" them?
What is the need for "ranking" them?

You should be able to sort them in the order you like.
I have had to number things in a certain order before, and I sorted them in the order I like, them used a DAO.Recordset and looped through that query to number them in the order I wanted (using VBA).
 
Upvote 0
Joe,

thanks for replying. I have to rank cost for certain groups, so my data looks like
Group Cost Rank
A 200
A 100
B 150
B 400

I guess I can assend my data can you help me write a simple code to put a rank (using counter and reset counter at each group change)

Thanks
 
Upvote 0
Thanks I am able to work with Excel thing.

For some reason since I have been trying to rank in access my queries are taking way long time to give an output. is this some memory issue? Same queries use to run very fast before.
 
Upvote 0
I am not sure. I can't say that I have ever really used the Rank function in Access. The script I referenced runs pretty quickly and smoothly.
 
Upvote 0
I think ranking 48000 records is bound to take some time.

I don't know what code you are using but it must be comparing the value from one field in one record to the value from the same field of all the other records.
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,602
Members
449,089
Latest member
Motoracer88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top