I would like to use DLookUp to pull the month from the month field in a query. The query formats the month as full month, January, February, etc...
Here is my attempt. Can you please give me the proper syntax:
Code:
=DLookUp("[Total Verifications]","[qryTotalInspectionsByMonthYTD]","Format([Month],"mmm")=" &[Reports]![rptMonthlyVTeam]![hidDate] & ")
The report textbox hidDate has code in it that will format the current month as "mmm" : this is what drives hidDate.
=Format(Date(),"mmm")
the query i'm pulling from counts the amount of inspections in a given month and I need to pull that number into a text box within my report. For nothing else, i'd like to learn the syntax.