SunQuest
 
           Database Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesDatabase Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old May 12th, 2005, 05:21 PM
stormcandi stormcandi is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 6 stormcandi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 20 m 14 sec
Reputation Power: 0
Question Incrementing

Hello,

I am relatively new to VBA but I hope someone can help me.

I have a query that gets totals and names of employees and sorts the totals in descending order. What I need to do is to add an additional column which ranks them. The highest total and employee receives a ranking of 100. The next employee's ranking is the previous employee's ranking minus another number (generated by a different query.). The other number is a decimal value.

I have a function which will increment it down, however it keeps incrementing. So if you scroll down the list and then back up the list, the top person is no longer 100, their number has changed to something else. Also if another application's screen covers the results of the query and then is moved away the query's ranking also changes for each person.

Dows anyone know what I can do to have it stop at the end of the recordset? I have tried EOF but I just get an error each time the code is executed and a #Error in the ranked field for the entire query.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesDatabase Development > Incrementing


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway