I'm working on an append query that will take the latest entry minus the previous entry and append it as a single row to an existing table.
What I have worked out so far appends all of the results from from the first table, instead of just one record.
Here is my SQL as of now:
Code:
INSERT INTO AssetWKMOUsage ( AssetID, WeeklyUsage )
SELECT AssetUsage.AssetID, DMax("Usage","AssetUsage","AssetID = " & Forms![Asset Details]!AssetID)-DLookUp("Usage","AssetUsage","AssetUsageID = " & [AssetUsageID]-1)
FROM AssetUsage
WHERE (((AssetUsage.AssetID)=Forms![Asset Details]!AssetID));
How can I tell it to ONLY perform the query on the latest entry, and not the entire table?
TIA! 