I am trying to do the following:
<CFQUERY NAME="Insert" DATASOURCE="MyDSN">
INSERT INTO Mail_List (ML_FirstName, ML_LastName, ML_Email, ML_Type )
VALUES Customers('FirstName', 'LastName', 'EMail', 'Customer')
WHERE ((customers.EmailOK)=True)
</CFQUERY>
<body>
We have added the customers info into the mailing list.
</body>
As you can see I am trying to move data from the customers table (based on the value of EmailOK) into the mailing list table directly.
I am using an Access database with text fields and I get the following error:
Syntax error in INSERT INTO statement.
Any help would be appreciated!
<CFQUERY NAME="Insert" DATASOURCE="MyDSN">
INSERT INTO Mail_List (ML_FirstName, ML_LastName, ML_Email, ML_Type )
VALUES Customers('FirstName', 'LastName', 'EMail', 'Customer')
WHERE ((customers.EmailOK)=True)
</CFQUERY>
<body>
We have added the customers info into the mailing list.
</body>
As you can see I am trying to move data from the customers table (based on the value of EmailOK) into the mailing list table directly.
I am using an Access database with text fields and I get the following error:
Syntax error in INSERT INTO statement.
Any help would be appreciated!