First create a query called qryLastFilenm that sorts the records in Table2 so
that the appropriate record always shows up last.
Then in a column in a query based on Table1, put the following:
LastFileNM: DLast("[Filenm]","Table2")

Signature
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
> Hi,
>
[quoted text clipped - 7 lines]
>
> KT
KimTong - 26 Jul 2007 18:57 GMT
It works. Thank you very much....
>First create a query called qryLastFilenm that sorts the records in Table2 so
>that the appropriate record always shows up last.
[quoted text clipped - 7 lines]
>>
>> KT