Code:
DoCmd.RunSQL "Insert into Table2 (question, option1, option2, " & _
"option3,option4) Values('" & Me!question.Value & "','" & Me!option1.Value & _
"','" & Me!option2.Value & "','" & Me!option3.Value & "','" & Me!option4.Value & _
"') WHERE traineeans.Value <>'" & Me!answer.Value & "'"
if where statement is not there then my code working
in where statement traineeans is textbox in the form.answer is textbox.answer has a control source which is a feld in the table.
how to write the insert into where stsement
please help me
Comment