W
worksfire1
I am so confused in my procedure where I am trying to take 2 text fields
from a multi-list box and insert them into a table as text. I keep getting a
data type conversion error. Does this error mean something is wrong with me
having a text versus numeric quoting in my INSERT INTO statement? Please
help me make this where it will grab the 2 text fields and insert them into
tblTest as text fields without the "data type conversion" error.
db.Execute "INSERT INTO tblTest " & _
"(Firstfieldname, Sixthfieldname)" & _
"VALUES(" & """ & ctl.ItemData(varItem) & """, """ & ctl.Column(6, varItem)
& "")"
from a multi-list box and insert them into a table as text. I keep getting a
data type conversion error. Does this error mean something is wrong with me
having a text versus numeric quoting in my INSERT INTO statement? Please
help me make this where it will grab the 2 text fields and insert them into
tblTest as text fields without the "data type conversion" error.
db.Execute "INSERT INTO tblTest " & _
"(Firstfieldname, Sixthfieldname)" & _
"VALUES(" & """ & ctl.ItemData(varItem) & """, """ & ctl.Column(6, varItem)
& "")"