So I have been changing my working unbound form (updates a table) slowly to match the data that I want to put in it. Suddenly when I changed cboSixth to cboBuyerFee, it stopped working and said it couldnt find the method cboBuyerFee.. so I fiddled with it, changed the name, changed it back.. now, its giving me the same error on a box that worked fine just a few min ago. It now stops when it trys to populate the table from me.cboBuyer. But as you can see, its clearly there.. and the syntax was fine a moment ago? is there ever a need to clear or reset variables, or methods? Here’s the code:
Private Sub MethodSubmitForm_Click()
Dim strSQL As String
strSQL = _
“INSERT INTO tblTheGoods ” & _
“(FirstData, SecondData, ThirdData, FourthData, FifthData, SixthData, SeventhData, EighthData)” & _
” VALUES (” & _
“‘” & Me.cboCarMake & “‘, ” & _
“‘” & Me.cboCarModel & “‘, ” & _
“‘” & Me.cboColor & “‘, ” & _
“‘” & Me.cboSeller & “‘, ” & _
“‘” & Me.cboBuyer & “‘, ” & _
“‘” & Me.cboBuyerFee & “‘, ” & _
“‘” & Me.cboSeventh & “‘, ” & _
“‘” & Me.cboEighth & “‘)”
CurrentDb.Execute strSQL, dbFailOnError
End Sub
—————————-
Now, I know you may wonder whether or not I have named the combo boxes correctly. I have double and triple checked that.. retyped it, etc. The form has cboBuyer and cboBuyerFee, just like that. And, remember that the cboBuyer worked fine before my original error.