G
Guest
Hi,
I have a continuous form with the following fields from one table:
Name (text)
Grade (text)
CkMailingLabel (check box)
The form also has a combo box named cboGrade and a command button
Based on the grade selected in the cboGrade box I want to turn on (check)
the check box CkMailingLabel for the records where cboGrade = Grade
I currently have the following code in the command button which gives me an
error “too few parametersâ€
CurrentDb.Execute "UPDATE Students SET CkMailingLabel = -1 WHERE Grade =
cboGrade"
In my code the above line is on one line.
What am I missing or is there a better way?
Thanks
I have a continuous form with the following fields from one table:
Name (text)
Grade (text)
CkMailingLabel (check box)
The form also has a combo box named cboGrade and a command button
Based on the grade selected in the cboGrade box I want to turn on (check)
the check box CkMailingLabel for the records where cboGrade = Grade
I currently have the following code in the command button which gives me an
error “too few parametersâ€
CurrentDb.Execute "UPDATE Students SET CkMailingLabel = -1 WHERE Grade =
cboGrade"
In my code the above line is on one line.
What am I missing or is there a better way?
Thanks