A family of Microsoft relational database management systems designed for ease of use.
A Dlookup has 3 parts.
- The field you want to return the value from in quotes
- The table or query which contains the field you want the data from (in quotes)
- The criteria as a string.
So,
DLookup("FieldNameHere", "TableNameHere", "[AnotherField]='Something'")
In your case you want dates so it would be:
=Nz(DLookup("[FiscalMonth]", "tblFiscal", "[EventInHome] Between [FiscalStart] And [FiscalEnd]")
Bob Larson, Former Access MVP (2008-2010) http://www.btabdevelopment.com (free Access tools, tutorials, and samples)