BBK
Registered User.
- Local time
- Today, 08:07
- Joined
- Jul 19, 2010
- Messages
- 71
I have with fantastic help from John Big Booty created a query that lists all tenants that are due to pay rent for today.
Supposing my query returns 3 results that are due payment.
I check my bank records and see only 2 of these results are true.
I want to be able to run another query that will list the tenant(s) who have failed to make a payment.
I have managed to conjour up the following code ( no laughing ):
But it is listing all the 3 tenants payments made so far, and not finding the one who has missed their payment JUST for todays date.
I hope i have explained my problem ok and hope someone could shed some light on yet another problem i have.
Thanks for reading.
Supposing my query returns 3 results that are due payment.
I check my bank records and see only 2 of these results are true.
I want to be able to run another query that will list the tenant(s) who have failed to make a payment.
I have managed to conjour up the following code ( no laughing ):
Code:
SELECT DISTINCT Query1.FirstName, Query1.LastName, tblPayment.DatePaid, Query1.DayOfPayment
FROM Query1, (tblTenant INNER JOIN tblLease ON tblTenant.TenantID = tblLease.TenantID) INNER JOIN tblPayment ON tblTenant.TenantID = tblPayment.TenantID
WHERE (((tblPayment.DatePaid)<>[Query1].[DayOfPayment]))
GROUP BY Query1.FirstName, Query1.LastName, tblPayment.DatePaid, Query1.DayOfPayment
ORDER BY Query1.DayOfPayment DESC;
I hope i have explained my problem ok and hope someone could shed some light on yet another problem i have.
Thanks for reading.