CheyenneWay
Programmer
I know this is a very basic question but my brain is broke. How do I insert multiple records with a strSQL statment.
my example:
dim strSQL as String
dim strSQL2 as String
strSQL = "INSERT INTO myTable(Field1, Field2)" & _
"Values("myStuff","moreStuff")"
strSQ2L = "INSERT INTO myTable(Field1, Field2)" & _
"Values("MoreMyStuff","SomeMoreStuff")"
Do I really need to declare a strSQL2 to insert another record? Seems too complicated to be true and I would think I could just add many rows with just one strSQL statement. Thank you for taking a look!
my example:
dim strSQL as String
dim strSQL2 as String
strSQL = "INSERT INTO myTable(Field1, Field2)" & _
"Values("myStuff","moreStuff")"
strSQ2L = "INSERT INTO myTable(Field1, Field2)" & _
"Values("MoreMyStuff","SomeMoreStuff")"
Do I really need to declare a strSQL2 to insert another record? Seems too complicated to be true and I would think I could just add many rows with just one strSQL statement. Thank you for taking a look!