I have an unbound form with a listbox and text box.
After selecting a item from the listbox the value pushed into a text box.
If required, the text box can be edited and command button pushed.
I want the record to be updated with the edited text in the textbox. The code below currently shows both variables are being captured, but it is giving me a Run-Time error 3075. I am guessing my syntax is wrong but I cannot figure it out.
After selecting a item from the listbox the value pushed into a text box.
If required, the text box can be edited and command button pushed.
I want the record to be updated with the edited text in the textbox. The code below currently shows both variables are being captured, but it is giving me a Run-Time error 3075. I am guessing my syntax is wrong but I cannot figure it out.
Code:
CurrentDb.Execute "UPDATE tblSection SET tblSection.SectionName = " & "" & Me.Text8 & "" & _
" WHERE tblSection.SectionID = " & Me.List6