bs0d
Well-known Member
- Joined
- Dec 29, 2006
- Messages
- 622
I'm trying to update a field in a properties table to reflect the minimum date found in a daily readings table where the property id's match.
Can someone look at my SQL and let me know where I'm going wrong with this?
Thanks!
Can someone look at my SQL and let me know where I'm going wrong with this?
Thanks!
Code:
UPDATE tblDailyReadings INNER JOIN tblProperties ON tblDailyReadings.item_KEY = tblProperties.WH_IDX SET tblProperties.WH_Custom4 = Min([tblDailyReadings].[ReadingDate])
WHERE (((tblProperties.WH_IDX)=[tblDailyReadings].[item_KEY]));