"Bob" <(E-Mail Removed)> wrote in message news:ejatvh$8pt$(E-Mail Removed)
>>
> Dirk it seems to be a function in Query that gives me my Currency
> Payable:
>
Format(Nz(qTotalDueForPayment.TotalDue,0)-Nz(qPaidAmountForPayment.PaidT
otal,0),"Currency")
> The amount left is what is owed which is what I cant seem to get
> sorted Thanks...........Bob
If you're sorting by that calculated field, you're sorting a text field,
not a number field at all. The Format() function returns a text string.
I suggest that you do one of two things:
EITHER
(a) remove the Format() wrapping from the calculated field, so the
expression is just this:
Nz(qTotalDueForPayment.TotalDue,0) -
Nz(qPaidAmountForPayment.PaidTotal,0)
and then use the Format *property* of the text box on your form or
report to apply the Currency format,
OR
(b) leave this calculated field as it is, but don't sort on it.
Instead, add the unformatted version of the field to the query -- with
the "Show" box unchecked -- and sort on that field.
I think option (a) would be the better choice.
--
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)