I am trying without any success writing an append query in my database.
I have done it many times before but not with such a limited scope.
I have a main table called zEMPMain. This is the main data storage.
I have another table called CICMH. This is the table that I want to append new data to.
In the zEMPMain table there are multiple fields but I only want to append the data from one field called MHIC.
In the CICMH table there are also multiple fields.
I only want to append the MHIC data from zEMPMain to the CICMHTotal in the CICMH table.
When I set up the the query the SQL looks like this
I then get an error that says Insert INTO statement contains the following unknown field name: 'Project Name'.
That is a field in the zEMPMain table but I don't want it to append to the CICMH table.
I have done it many times before but not with such a limited scope.
I have a main table called zEMPMain. This is the main data storage.
I have another table called CICMH. This is the table that I want to append new data to.
In the zEMPMain table there are multiple fields but I only want to append the data from one field called MHIC.
In the CICMH table there are also multiple fields.
I only want to append the MHIC data from zEMPMain to the CICMHTotal in the CICMH table.
When I set up the the query the SQL looks like this
Code:
INSERT INTO CICMH ( CICMHTotal )
SELECT zEMPMain.MHIC, *
FROM zEMPMain INNER JOIN CICMH ON zEMPMain.ID = CICMH.ID;
That is a field in the zEMPMain table but I don't want it to append to the CICMH table.