Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DLookup Functions 1

Status
Not open for further replies.

ChemistZ

Programmer
Oct 30, 2001
70
US
Is there a way to make the DLookup function return the last value that was entered into a particular field of a table? Or if I have a date field in the table, can I have it return a certain value based on the latest date? I tried something like this

=DLookUp("[PAYMENT]","MASTER_FEE","[FEE_CHANGE_DATE]=MAX([FEE_CHANGE_DATE])")

but it isn't working

Any suggestions??
 
You need to say
DLookUp("[PAYMENT]","MASTER_FEE",
"[FEE_CHANGE_DATE] IN (select MAX([FEE_CHANGE_DATE]) from master_fee)" )
--Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top