Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

QuickReports Question

Posted on 2000-02-16
2
148 Views
Last Modified: 2013-11-22
I have a table with a similar structure to this:

Index - AutoInc field
UserId - integer
Amount - integer
Date
Time

This is an audit type report where each UserID will have more than one record. I need to produce a report showing totals per UserID with the UserID with the highest total appearing frst in the report and then decsending to the dude with the lowest.

Is this possible WITHOUT having to pre-process the data ?
0
Comment
Question by:RLancaster
2 Comments
 
LVL 15

Accepted Solution

by:
simonet earned 200 total points
ID: 2526616
Yes, just build a query (SQL) that already arranges the data the way you want. Then use that query as the datasource for the QuickReport.

On the query below, I assumed that you want to show the totals, that is, the sum of all the amounts for a specific UserID.

SELECT USERID, SUM(AMOUNT) AS TOTAL FROM MYTABLE
GROUP BY USERID
ORDER BY TOTAL DESC

That has been tested against a Paradox table with a strutucture similar to yours and works.

Now just add a TQuery to the form, w/ the SQL above, link it to the TQuickRep component and QRBands, QRDBText, etc, and you're all set.

Yours,

Alex
0
 
LVL 1

Author Comment

by:RLancaster
ID: 2526650
thanks dude !!!
i just managed to get it working all on my own but because of your prompt and accurate response I am giving you the points any way :) ... and an excellent rating
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question