B
Bob V
I have replaced QryOverdue.Payable with tblAccountStatus.PaidAmount, buy now
my query has gone from the correct 25 records to 256 records
Please any help..........Bob
**OLD**
SELECT QryOverdue.Name, Max(tblAccountStatus.BillDate) AS LastDate,
QryOverdue.Payable, tblOwnerInf
wnerFirstName, tblOwnerInf
wnerLastName,
tblAccountStatus.OwnerID
FROM (((tblAccountStatus INNER JOIN tblOwnerInfo ON tblAccountStatus.OwnerID
= tblOwnerInf
wnerID) INNER JOIN QryOverdue ON tblOwnerInf
wnerID =
QryOverdue.OwnerID) INNER JOIN qPaidAmountForPayment ON QryOverdue.OwnerID =
qPaidAmountForPayment.OwnerID) INNER JOIN qTotalDueForPayment ON
qPaidAmountForPayment.OwnerID = qTotalDueForPayment.OwnerID
GROUP BY QryOverdue.Name, QryOverdue.Payable, tblOwnerInf
wnerFirstName,
tblOwnerInf
wnerLastName, tblAccountStatus.OwnerID
ORDER BY QryOverdue.Name;
**NEW**
SELECT QryOverdue.Name, Max(tblAccountStatus.BillDate) AS LastDate,
tblAccountStatus.PaidAmount, tblOwnerInf
wnerFirstName,
tblOwnerInf
wnerLastName, tblAccountStatus.OwnerID
FROM (tblAccountStatus INNER JOIN tblOwnerInfo ON tblAccountStatus.OwnerID =
tblOwnerInf
wnerID) INNER JOIN QryOverdue ON tblOwnerInf
wnerID =
QryOverdue.OwnerID
GROUP BY QryOverdue.Name, tblAccountStatus.PaidAmount,
tblOwnerInf
wnerFirstName, tblOwnerInf
wnerLastName,
tblAccountStatus.OwnerID
ORDER BY QryOverdue.Name;
my query has gone from the correct 25 records to 256 records
Please any help..........Bob
**OLD**
SELECT QryOverdue.Name, Max(tblAccountStatus.BillDate) AS LastDate,
QryOverdue.Payable, tblOwnerInf
tblAccountStatus.OwnerID
FROM (((tblAccountStatus INNER JOIN tblOwnerInfo ON tblAccountStatus.OwnerID
= tblOwnerInf
QryOverdue.OwnerID) INNER JOIN qPaidAmountForPayment ON QryOverdue.OwnerID =
qPaidAmountForPayment.OwnerID) INNER JOIN qTotalDueForPayment ON
qPaidAmountForPayment.OwnerID = qTotalDueForPayment.OwnerID
GROUP BY QryOverdue.Name, QryOverdue.Payable, tblOwnerInf
tblOwnerInf
ORDER BY QryOverdue.Name;
**NEW**
SELECT QryOverdue.Name, Max(tblAccountStatus.BillDate) AS LastDate,
tblAccountStatus.PaidAmount, tblOwnerInf
tblOwnerInf
FROM (tblAccountStatus INNER JOIN tblOwnerInfo ON tblAccountStatus.OwnerID =
tblOwnerInf
QryOverdue.OwnerID
GROUP BY QryOverdue.Name, tblAccountStatus.PaidAmount,
tblOwnerInf
tblAccountStatus.OwnerID
ORDER BY QryOverdue.Name;