D
Duncs
I have inherited a database with the following structure:
tblMovements
fldName Text
fldDate Text
fldStatus Text
So, some example date looks like:
John Smith 20080423 In
Paul Webb 20071124 Discharged
Jack Brown 20080423 In
John Smith 20080516 Out
Paul Webb 20080101 On Loan
John Smith 20080801 Discharged
What I want to do, is display the names and the latest status / date
for each person. For example:
John Smith Discharged 20080801
Paul Webb On Loan 20080101
Jack Brown In 20080423
However, since the dates are held as text—don’t ask why, as I don’t
know—I can’t use the ‘Max’ or ‘Last’ functions in a query to get the
latest date.
Can someone help?
TIA
Duncs
tblMovements
fldName Text
fldDate Text
fldStatus Text
So, some example date looks like:
John Smith 20080423 In
Paul Webb 20071124 Discharged
Jack Brown 20080423 In
John Smith 20080516 Out
Paul Webb 20080101 On Loan
John Smith 20080801 Discharged
What I want to do, is display the names and the latest status / date
for each person. For example:
John Smith Discharged 20080801
Paul Webb On Loan 20080101
Jack Brown In 20080423
However, since the dates are held as text—don’t ask why, as I don’t
know—I can’t use the ‘Max’ or ‘Last’ functions in a query to get the
latest date.
Can someone help?
TIA
Duncs