oh i am really feeling like an idiot...i have a access2000 form that contains checkboxes (10) per category (4). checkboxes were named check1to10 in the first category, check11 to 20 and so on... i want to count just the "yes" boxes for each category. because each category needs to be scored separately. i tried to put the following code on a command button...also on afterupdate...nothing! is there anyone who can help me get my dignity back!
Dim counta As Integer
For i = 1 to (10)
If Me("check" & i) = true Then counta = counta + 1
Next i
Me![subcomp1] = counta
Dim counta As Integer
For i = 1 to (10)
If Me("check" & i) = true Then counta = counta + 1
Next i
Me![subcomp1] = counta