Within Access, Dlookup provides functionality very similar to that of
Vlookup:
Dlookup(FieldNameOfReturnValue, NameOfTable/QueryToSearch,
CriteriaSpecifyingRecordContainingReturnValue).
as opposed to Vlookup(CriteriaToLookFor, RangeToLookIn,
FieldToReturnValueFrom, ApproximateOrExact?)
Dlookup is more powerful than Vlookup, since you can specify criteria based
on multiple fields. Exact matches are pretty straightforward. If you are
looking for an approximate match, you'd have to do a little more work, just
like you do in Excel: you need to make sure the data being searched is in
the correct sort order to yield the results you want (i.e., provide the name
of a stored query that has an appropriate ORDER BY clause)
....or possibly use DFirst, DLast, DMin, DMax, etc. instead of DLookup.
....or open a recordset (sorted in a specific order) and then do a "Find
First" using the appropriate criteria.
If you are automating Excel from within Access, you can still use Vlookup
if you want: YourExcelObject.WorksheetFunction.Vlookup(...)
HTH,