G
Guest
I'm trying to update a field in a record by pushing a button on a form.
The following code is giving me this error: "Too few parameters. 1 expected"
Any thoughts?
strSQL = "UPDATE students " & _
"SET txtMBusDetention = 1 " & _
"WHERE txtStudent = '" & Forms!frmMissBus!cboName & "'"
CurrentDb.Execute strSQL, dbFailOnError
The following code is giving me this error: "Too few parameters. 1 expected"
Any thoughts?
strSQL = "UPDATE students " & _
"SET txtMBusDetention = 1 " & _
"WHERE txtStudent = '" & Forms!frmMissBus!cboName & "'"
CurrentDb.Execute strSQL, dbFailOnError