D
Dan Johnson
I am trying to query the latest meter reading on 17 pieces of equipment listed in a table.
The table consists of 5 fields (RecordID, Asset#, HourMeterReading, Date, Hours). Each month the information is added with each of the fields.
The bottom line is that I would like to most recent "HourMeterReading" for each of the 17 assets in the database. I have tried the max value on Date but have not been successful in retrieving the correct information. I cannot use the max value on the machines because some of them have been replaced and began with new (0) meter readings. As such, the meters in the new assets will have a lower meter reading than the original equipment it replaced.
I am thanking you, in advance, for any assistance.
The table consists of 5 fields (RecordID, Asset#, HourMeterReading, Date, Hours). Each month the information is added with each of the fields.
The bottom line is that I would like to most recent "HourMeterReading" for each of the 17 assets in the database. I have tried the max value on Date but have not been successful in retrieving the correct information. I cannot use the max value on the machines because some of them have been replaced and began with new (0) meter readings. As such, the meters in the new assets will have a lower meter reading than the original equipment it replaced.
I am thanking you, in advance, for any assistance.