I tried using DLast function but its not working below is the code:
as I understood, DLast function takes the last record of the table.
Code:
Me.txtReturnedYear = Nz(DLast("returnedYear", "documentLog", "fileCode LIKE '" & Me.txtFileCode & "*'"), "")
Comment