A SQL query like this should return what you want.
Code:
SELECT     TOP 1 *
FROM         YourTable
ORDER BY [reference number] DESC