Hi,
I want to create a complex INSERT/APPEND action query SQL String.
Table Name - Company
Field Names -
CompanyID
CompanyName
Building
Table Name - TblOldBackup
Field Names -
CompanyID
CompanyName
Building
Conditions:
If records does not exist – INSERT/APPEND into tblOldBackup
If records exist but Fields does not match, INSERT/APPEND into tblOldBackup.
This is where the furthest I can go…
Insert INTO tblOldBackup ( CompanyID, CompanyName, Building)
Select Company.CompanyID, Company.CompanyName, Company.Building
FROM Company
WHERE Company.CompanyID = 1008
Anyone got ideas?
I want to create a complex INSERT/APPEND action query SQL String.
Table Name - Company
Field Names -
CompanyID
CompanyName
Building
Table Name - TblOldBackup
Field Names -
CompanyID
CompanyName
Building
Conditions:
If records does not exist – INSERT/APPEND into tblOldBackup
If records exist but Fields does not match, INSERT/APPEND into tblOldBackup.
This is where the furthest I can go…
Insert INTO tblOldBackup ( CompanyID, CompanyName, Building)
Select Company.CompanyID, Company.CompanyName, Company.Building
FROM Company
WHERE Company.CompanyID = 1008
Anyone got ideas?