Outside of queries, DLookup is another built-in versatile and essential function in Microsoft Access that allows users to retrieve specific field values from tables or queries based on a defined criteria. This function is particularly useful when you need to access data that isn’t directly available in your current form, report, or query.
Syntax and Structure
The basic syntax of the DLookup function is as follows:
DLookup(expr, domain, [criteria])
- expr
The field or expression you want to retrieve. - domain
The table or query name containing the data. - criteria
Optional. The criteria to filter the records with.