I have need help on something I can't solve.
I have a main table Dispatch (I have sence learned that I should have named it tblDispatch plus other nomenclature no-no's) which has pertinent fields of source, date , AmtBilled, Amt Credit and AmtPaid. The other table is Source which has all the mailing info for the source. I use a querry Invoice to select records for which the AmtBilled - AmtCredit-AmtPaid > 0. SQL follows:
SELECT Source.Source, Dispatch.Date, Source.[Vendor #], Source.Street, Source.City, Source.St, Source.Zip, Source.BillingInfo, Dispatch.AmtBilled, Dispatch.AmtCredit, Dispatch.AmtPaid, Dispatch.Invoice, Dispatch.[PO Number], Dispatch.Description, Dispatch!AmtBilled-Dispatch!AmtCredit-Dispatch!AmtPaid AS Expr1
FROM Dispatch RIGHT JOIN Source ON Dispatch.Source = Source.Source
WHERE ((([Dispatch]![AmtBilled]-[Dispatch]![AmtCredit]-[Dispatch]![AmtPaid])>0))
ORDER BY Source.Zip;
This querry feeds a Report writer which uses the source as a group. The group footer has the sum of the billed that have not been paid. I need to include in the Report group footer the sum of (AmtBilled-AmtCredit-AmtPaid) which are over one month (or 30 days) old. I can write a querry on Invoice Querry to lists these over one month sources but I don't know how to put it is in the group footer of the source group.
So the desired group footer would read something like this:
Amount Overdue:
TotalAmount Due:
Thanks
Just leraning,
RealNine
I have a main table Dispatch (I have sence learned that I should have named it tblDispatch plus other nomenclature no-no's) which has pertinent fields of source, date , AmtBilled, Amt Credit and AmtPaid. The other table is Source which has all the mailing info for the source. I use a querry Invoice to select records for which the AmtBilled - AmtCredit-AmtPaid > 0. SQL follows:
SELECT Source.Source, Dispatch.Date, Source.[Vendor #], Source.Street, Source.City, Source.St, Source.Zip, Source.BillingInfo, Dispatch.AmtBilled, Dispatch.AmtCredit, Dispatch.AmtPaid, Dispatch.Invoice, Dispatch.[PO Number], Dispatch.Description, Dispatch!AmtBilled-Dispatch!AmtCredit-Dispatch!AmtPaid AS Expr1
FROM Dispatch RIGHT JOIN Source ON Dispatch.Source = Source.Source
WHERE ((([Dispatch]![AmtBilled]-[Dispatch]![AmtCredit]-[Dispatch]![AmtPaid])>0))
ORDER BY Source.Zip;
This querry feeds a Report writer which uses the source as a group. The group footer has the sum of the billed that have not been paid. I need to include in the Report group footer the sum of (AmtBilled-AmtCredit-AmtPaid) which are over one month (or 30 days) old. I can write a querry on Invoice Querry to lists these over one month sources but I don't know how to put it is in the group footer of the source group.
So the desired group footer would read something like this:
Amount Overdue:
TotalAmount Due:
Thanks
Just leraning,
RealNine