matethreat
Technical User
Hello,
I want to look up a value in a table with the DLookup function, but I am a little unsure of how to write the criteria.
DLookup("Price", "[History]", "ItemNumber='" & Me.ItemNumber & "'")
in this code I want it to find the price of that item the last time it was completed.
So I will have a table (History) that looks like this
ItemNumber Date Price
0001 14/06/2004 25.00
0001 24/06/2004 27.00
The code the way it is doesn't necessarily find the last time it was created and I am not sure how to incorporate the date into the code.
Any help is appreciated.
Thanks
Aaron
I want to look up a value in a table with the DLookup function, but I am a little unsure of how to write the criteria.
DLookup("Price", "[History]", "ItemNumber='" & Me.ItemNumber & "'")
in this code I want it to find the price of that item the last time it was completed.
So I will have a table (History) that looks like this
ItemNumber Date Price
0001 14/06/2004 25.00
0001 24/06/2004 27.00
The code the way it is doesn't necessarily find the last time it was created and I am not sure how to incorporate the date into the code.
Any help is appreciated.
Thanks
Aaron