I'm trying to copy a number of columns from one table to another table (column names are the same in both tables) when a (tick box) column is checked in my MS Access database. I know that I can use the Insert Into
SQL query but it doesn't seem to be working.
When I try to run it I just get
Syntax error in INSERT INTO statement
This is what I have written:
INSERT INTO Fauna_ATT (Burn ID, Burn Name, Value Effected, Pre Burn Action Details, During Burn Action Details, Post Burn Action Details)
SELECT Burn ID, Burn Name, Value Effected, Pre Burn Action Details, During Burn Action Details, Post Burn Action Details
FROM EPFP
WHERE ATT="TRUE";
Fauna_ATT
is my table I want the columns to be placed
Burn ID, Burn Name, Value Effected, Pre Burn Actions, During Burn Actions and Post Burn Actions
are my columns I want to copy
EPFP
is my table I want the columns to come from and I only want the columns to be copied over when my ATT
(check box column) is ticked.