I am trying to insert into a table using the SQL INSERT INTO statement.
The table I am trying to insert into is called t_comments. That table has 8 columns.
This code works for 1 record:
But, if I attempt to enter into multiple records:
I am assigning each of those statements to a string and then executing with DoCmd.RunSQL
The error I get for the multiple row attempt is:
And, as you can see. I have a semi-colon.
Thanks.
The table I am trying to insert into is called t_comments. That table has 8 columns.
This code works for 1 record:
Code:
INSERT INTO t_comments VALUES (1,2,3,4,5,6,7,8);
But, if I attempt to enter into multiple records:
Code:
INSERT INTO t_comments VALUES (1,2,3,4,5,6,7,8), (9,10,11,12,13,14,15,16), (17,18,19,20,21,22,23,24);
I am assigning each of those statements to a string and then executing with DoCmd.RunSQL
The error I get for the multiple row attempt is:
Code:
"Run-time error '3137': Missing semicolon (;) at end of SQL statement."
And, as you can see. I have a semi-colon.
Thanks.