Reid Roman wrote:
> I have noticed on a report that when a value is summed via SQL, if the
> value's summed total is not an even dollar amount, (ex: $12.33) the
> result will display as $12.33.
> If it is an even amount (ex: $12.00) it will display as $12 .....
> Is there a way to force to result of Sum() to ALWAYS display a 2 digit
> decimal or float value even when it will be ".00" ??
> Here is the SQL for that TQuery: (Using Delphi v3.0)
> ---------------------------------------------------------
> SELECT E.VendorName, E.AmountPaid, E.InvoiceDate, E.Category,
> Sum(E.AmountPaid) Vendor_Total
> FROM Expense E
> WHERE InvoiceDate BETWEEN (:pStartDate) AND (:pEndDate)
> AND Category = (:pCategory)
> OR VendorName = (:pVendorname)
> GROUP BY VendorName, InvoiceDate, AmountPaid, Category;
> ---------------------------------------------------------
> Any help would be greatly appreciated!
> Thanks
> Rkr
> --
> \|||/
> /'^'\
> ( 0 0 )
> --------------oOOO--(_)--OOOo--------------
> . Reid Roman .
> . Delphi Programmer / Analyst .
> . TVisualBasic:=class(None); .
> . May the Source be With You .
> -------------------------------------------
> . Auto-By-Tel (http://www.autobytel.com) .
> . Irvine, CA U.S.A .
> . E-Mail : rkroman (at) pacbell (dot) net .
> . or reidr (at) autobytel (dot) com .
> -------------------------------------------