SELECT DeviceSummary.AssetName, DeviceSummary.Username, UserDetails.[First name],
UserDetails.[Last name], UserDetails.[Cost Centre], DeviceSummary.LastUsed
FROM UserDetails INNER JOIN DeviceSummary ON UserDetails.Username = DeviceSummary.Username
WHERE DeviceSummary.LastUsed = DMax("LastUsed", "DeviceSummary", "AssetName='" & DeviceSummary.AssetName & "'")
ORDER BY DeviceSummary.LastUsed DESC;