The data source which my DB is based upon is updated frequently, however I can not link directly to it so the tables are exported as a .csv then appended into the Entries table.
Is it possible to create an append query which matches the [Document Number] and then only Updates / Appends if [Rev Date] is more recent than the current document [Rev Date]?
Is it possible to create an append query which matches the [Document Number] and then only Updates / Appends if [Rev Date] is more recent than the current document [Rev Date]?
Code:
INSERT INTO Entries ( [Document Number], Title, Revision, [Rev Date] )
SELECT Entries1.[Document Number], Entries1.Title, Entries1.Rev, Entries1.Date
FROM Entries1 LEFT JOIN Entries ON Entries1.[Document Number] = Entries.[Document Number]
WHERE (((Entries.[Document Number]) Is Null));