Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft SQL Server

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:
  #1  
Old November 22nd, 2002, 06:41 PM
amy amy is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: usa
Posts: 2 amy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Rank Sort from Cross Tab Query

Hello!
Working in Microsoft Access, and using a crosstab query (that is based on a select query) I have created a report, within which is a text box that calculates a percentage from two fields.

SalespersonA.....Total#Act of Total#New.....Total%Act=xx%
Company1........#Act............#New
Company2........#Act............#New
etc.

SalespersonB......Total#Act of Total#New.....Total%Act=xx%
Company1........#Act............#New
Company2........#Act............#New
etc.

This report currently sorts alpha by Salesperson and everything works just fine.

I want to sort this report, descending, by the %Act=xx% field. (this field calculates on the #Act and #New fields)

How the heck do I pull this off?

I tried, with some help, to add a calculated field in the crosstab query, but couldn't seem to structure the expression to add all the individual #Act and #New so the rank wasn't true.

All comments and ideas welcome!

Thanks so much.
Amy

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft SQL Server > Rank Sort from Cross Tab Query


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
Stay green...Green IT