Hi,
I have a problem with displaying only the latest record. This is what i've done,
This is the sample of data,
VehicleNo StaffNo ReceiveDate
WFF9949 50424 08/05/2003
WFF9949 80690 12/09/2003
The latest record should be the 2nd record. But the problem is, both record are displayed on the query. This is because of the different StaffNo. Is there any other way to solve this problem? I need to include the StaffNo.
Any idea?
Thanx in advance..
I have a problem with displaying only the latest record. This is what i've done,
Code:
SELECT VehicleNo, StaffNo, Max(ReceiveDate)
FROM tblMain
GROUP BY VehicleNo, StaffNo;
This is the sample of data,
VehicleNo StaffNo ReceiveDate
WFF9949 50424 08/05/2003
WFF9949 80690 12/09/2003
The latest record should be the 2nd record. But the problem is, both record are displayed on the query. This is because of the different StaffNo. Is there any other way to solve this problem? I need to include the StaffNo.
Any idea?
Thanx in advance..