W
worksfire1
I had this working when I only coded it to insert 2 fields from my list
boxes. I simply added the other 4 fields that are in my list box and now I
am getting a message:
"Too few paramaters. Expected 1"
Here is my code with 6 fields I want to insert into tblTest:
db.Execute "INSERT INTO tblTest " & "([Oracle#],[DOS],[KCI
Item],[Cycle#],[Order Type],[Oracle ID])" & " VALUES(" &
ctl.ItemData(varItem) & "," & ctl.Column(2, varItem) & ",'" & ctl.Column(3,
varItem) & "'," & ctl.Column(4, varItem) & ",'" & ctl.Column(5, varItem) &
"'," & ctl.Column(6, varItem) & ")"
boxes. I simply added the other 4 fields that are in my list box and now I
am getting a message:
"Too few paramaters. Expected 1"
Here is my code with 6 fields I want to insert into tblTest:
db.Execute "INSERT INTO tblTest " & "([Oracle#],[DOS],[KCI
Item],[Cycle#],[Order Type],[Oracle ID])" & " VALUES(" &
ctl.ItemData(varItem) & "," & ctl.Column(2, varItem) & ",'" & ctl.Column(3,
varItem) & "'," & ctl.Column(4, varItem) & ",'" & ctl.Column(5, varItem) &
"'," & ctl.Column(6, varItem) & ")"