QMonPayParkBAmtOweOriginal is a query that finds the "PayRate" for
"AmtOwed" based on the date in "MonYr". The SQL for the query is:
SELECT TOP 1 Max(DateSerial(Year([EffDate]),Month([EffDate]),1)) AS
ExpEffDate, TPayPark.PayRate, TPayPark.ParkLotNameID
FROM TPayPark
GROUP BY TPayPark.PayRate, TPayPark.ParkLotNameID
HAVING
(((Max(DateSerial(Year([EffDate]),Month([EffDate]),1)))<=DateSerial(Year([Fo
rms]![FMonPayParkA]![FMonPayParkB].[Form]![MonYr]),Month([Forms]![FMonPayPar
kA]![FMonPayParkB].[Form]![MonYr]),1)) AND
((TPayPark.ParkLotNameID)=[Forms]![FMonPayParkA]![FMonPayParkB].[Form]![Park
LotNameID]))
ORDER BY Max(DateSerial(Year([EffDate]),Month([EffDate]),1)) DESC;
The sub form shows the "AmtOwed" charges for each month and allows entry for
"AmtPaid" and "DatePaid". Is there any way to move the above DLookUp to the
query for the subform?
Any Help will be appreciated?
Thanks,
Jack Peyton