Hello Everyone!!! I am new to the forum. I came across it trying to find a solution to my problem. I have some code and it is giving me an compile error and I cannot find it for the life of me. I need someone else to look at it and tell me what I am missing. Below is the code
<code>
CurrentDb.Execute "INSERT INTO TravelerQA(defecttype, defecttopic, defectsubtopic, questiontype, requestor, questiondate, question, answer, answerdate, answeredby, approval) " & _
" VALUES('" & Me.cmbdefecttype & "','" & Me.cmbdefecttopic & "','" & _
Me.cmbdefectsubtopic & "','" & Me.cmbgeneraltype & "','" & _
Me.txtrequestedby & "','" & Me.questiondate & "','" & _
Me.txtquestion & "','" & Me.txtanswer & "','" & _
Me.txtanswerdate & "','" & Me.txtansweredby & "','" & _
Me.cmbapproved & "')"
</code>
I checked all the labels in the properties box under name and they all match. It errors out and hightlights Me.txtrequestedby and then that is all I get. I tried everything to get it to work and I have nada. Any help or suggestions would be greatly appreciated. Thanks
<code>
CurrentDb.Execute "INSERT INTO TravelerQA(defecttype, defecttopic, defectsubtopic, questiontype, requestor, questiondate, question, answer, answerdate, answeredby, approval) " & _
" VALUES('" & Me.cmbdefecttype & "','" & Me.cmbdefecttopic & "','" & _
Me.cmbdefectsubtopic & "','" & Me.cmbgeneraltype & "','" & _
Me.txtrequestedby & "','" & Me.questiondate & "','" & _
Me.txtquestion & "','" & Me.txtanswer & "','" & _
Me.txtanswerdate & "','" & Me.txtansweredby & "','" & _
Me.cmbapproved & "')"
</code>
I checked all the labels in the properties box under name and they all match. It errors out and hightlights Me.txtrequestedby and then that is all I get. I tried everything to get it to work and I have nada. Any help or suggestions would be greatly appreciated. Thanks