Hello,
I had a question. Is there anything wrong with this query?
INSERT INTO Assets(Asset_ID, GPCL_Asset_ID, Asset_Type, Manufacturer, Model, Serial_Number, Description) VALUES(213,'E674',38,171,'37250-00','006631','E674 37250-00 006631 EMC Lab B28'),(214,'E253',255,285,'37250-00','006663','E253 37250-00 006663 EMC Lab');
I have it stored in a variable called Asset_SQL.
The values without single quotes are integer datatypes
In VBA, I am trying to insert to insert multiple values in one query into a table in a database. Unfortunately, when I try to execute it, I get a message stating Run-time error '3137': Missing semicolon (; )at end of SQL Statement.
I tried DoCmd.RunSQL Asset_SQL and I also tried CurrentDb.Execute Asset_SQL
I apologize if this is the wrong section, but I figured maybe something was wrong with my query maybe?
Someone said get rid of the VALUES part, but that just gave me a message saying my INSERT was wrong.
Thank you in advance,
Kirtap