Dear Jan:
The query might be:
SELECT [vendor#],
(SELECT SUM(amount)
FROM Public_APOPEN T1
WHERE T1.[vendor#] = T.[vendor#]
AND date_due BETWEEN Date() AND Date() - 30)
AS Current,
(SELECT SUM(amount)
FROM Public_APOPEN T1
WHERE T1.[vendor#] = T.[vendor#]
AND date_due BETWEEN Date() - 31 AND Date() - 60)
AS [1 to 30]
FROM Public_APOPEN T
ORDER BY [vendor#]
The above is just a start, but you should be able to extend it for
additional aging periods.
Warning: This query depends on the system date being set accurately. It
might be better to show the user a text box with the current system date
in
it, but allow them to correct that date. Change the query to refer to
this
control.
Tom Ellison
"(e-mail address removed)"
First the data is coming from an external source that Access is getting
the
data through ODBC. Second the Data File/table is called Public_APOPEN
I
created a query that contains the vendor#, voucher#, invoice#,date_due
and
the amount field.
:
Dear Jan:
I would typically create a subquery for each "aging" bracket column.
For
details on writing this query, please provide detials of the columns
and
tables from which this is to be done.
Tom Ellison
"(e-mail address removed)"
message
I need to create an aging report. I have the amount ,the due date of
the
amount. I need to show current period 1 to 30 days late, 31 to 60
days
late,
61 to 90 days late and over 91 days.