I have a [Customer Name] field from table1 and is included for my INSERT routine into table2. The error msg during the INSERT is "-2147217900 - No. of query values and destination are not the same."
I have checked the no. of fields in the INSERT phrase against the no. of values in the VALUES phrase and got sure that the pair is perfect. But when i did a debug.print on my SQL statement, it revealed that the comma in the [Customer Name] might have caused the impairing of the INSERT and the VALUES phrases. [Customer Name] contains comma between lastname and firstname. If i remove the pairs (INSERT and VALUES) for customer name, the routine works fine.
But i need to insert the customer name. How do i achieve this?
TIA,
I have checked the no. of fields in the INSERT phrase against the no. of values in the VALUES phrase and got sure that the pair is perfect. But when i did a debug.print on my SQL statement, it revealed that the comma in the [Customer Name] might have caused the impairing of the INSERT and the VALUES phrases. [Customer Name] contains comma between lastname and firstname. If i remove the pairs (INSERT and VALUES) for customer name, the routine works fine.
But i need to insert the customer name. How do i achieve this?
TIA,