R
Ramburst
Hai guys,
I'm writing a SQL code in MS Access to store the value
selected in the form from a combo box. The value I want is
in the 2nd column of the combo box.
docmd.runsql "INSERT logcall (customers)
VALUES (cbocustomers.column(2));"
but once i ran the code it return error of "undefine
function". However when I typed:
Msgbox cbocustomers.column(2) it return the value of 2nd
column I selected in the combo box correctly.
How does SQL read the value based on the combo box and
it's column I selected. If I use 'cbocustomer' and
not 'cbocustomer.column.2' I abled to get the 1st column
value of the combo box which is not I want.
Thanks for reading and be greatful if I got any reply...
(Hey Reggie sorry to trouble u again..hhe)
Ram.
I'm writing a SQL code in MS Access to store the value
selected in the form from a combo box. The value I want is
in the 2nd column of the combo box.
docmd.runsql "INSERT logcall (customers)
VALUES (cbocustomers.column(2));"
but once i ran the code it return error of "undefine
function". However when I typed:
Msgbox cbocustomers.column(2) it return the value of 2nd
column I selected in the combo box correctly.
How does SQL read the value based on the combo box and
it's column I selected. If I use 'cbocustomer' and
not 'cbocustomer.column.2' I abled to get the 1st column
value of the combo box which is not I want.
Thanks for reading and be greatful if I got any reply...
(Hey Reggie sorry to trouble u again..hhe)
Ram.