B
Brian
I am trying to use dlookup to put the results of a query (AAA) into a form's
unbound field
AAA
SELECT Sum(Payment_tbl.pmtAmt) AS SumOfpmtAmt, Year([pmtDate]) AS pmtYear,
Month([pmtDate]) AS pmtMo
FROM Payment_tbl
GROUP BY Year([pmtDate]), Month([pmtDate])
HAVING (((Year([pmtDate]))=Year(Now())));
Form Field
=DLookUp("pmtAmt","AAA",[pmtMo]=4)
getting an #Name error
unbound field
AAA
SELECT Sum(Payment_tbl.pmtAmt) AS SumOfpmtAmt, Year([pmtDate]) AS pmtYear,
Month([pmtDate]) AS pmtMo
FROM Payment_tbl
GROUP BY Year([pmtDate]), Month([pmtDate])
HAVING (((Year([pmtDate]))=Year(Now())));
Form Field
=DLookUp("pmtAmt","AAA",[pmtMo]=4)
getting an #Name error