G
Guest
I have an Access project (SQL Server 2000) that I am having trouble getting the ADODB Insert to work
My code is
cmd= "INSERT INTO Table " &
"(I1,I2,I3,S1,S2,I4) " &
"VALUES (" & V1 & "," & V2 & "," & V3 "," & VS1 & "," & VS2 & "," & V4 & ")
where I1 - I4 are integer columns, S1 & S2 are char columns and V1-V4 are integer variables and VS1 & VS2 are string variables
My problem is figuring out what delimiter ",' or [] to use to surround the string variables. I have tried all 3 to no avail. I get illegal comma messages. Any help would be greatly appreciated
Thanks
Davi
My code is
cmd= "INSERT INTO Table " &
"(I1,I2,I3,S1,S2,I4) " &
"VALUES (" & V1 & "," & V2 & "," & V3 "," & VS1 & "," & VS2 & "," & V4 & ")
where I1 - I4 are integer columns, S1 & S2 are char columns and V1-V4 are integer variables and VS1 & VS2 are string variables
My problem is figuring out what delimiter ",' or [] to use to surround the string variables. I have tried all 3 to no avail. I get illegal comma messages. Any help would be greatly appreciated
Thanks
Davi