Dlookup last row from multiple

subtilty

Registered User.
Local time
Today, 07:12
Joined
May 18, 2010
Messages
10
Hi All,

I have the following dloookup:
Code:
txtcustomeremail = DLookup("custemail", "calldata", "Reg=txtbocid")

And it works fine and brings back a value, however it brings back from the first row. I need it to bring back the matched email address from the latest row with the matching reg. Is this possible?

Many Thanks,
James
 
Hello James, You might want to use ELookUp(), a method implemented by Allen Browne that will allow you to sort the data, thus giving you the Last value for the matched Reg..

Hope this helps !
 
Looks perfect. Thanks!
 

Users who are viewing this thread

Back
Top Bottom