>I have a checkbox on a form. If it's checked, it appears to hold the value '1'.
>
>I want to have my code determine if the box is check with less code than:
>
>if (thisform.checkbox1 = 1) then
>endif
>
>
>I would like:
>
>LOCAL llDoRecap as Boolean
>
>llDoRecap = (thisform.checkbox1 = 1)
>
>if llDoRecap then
>endif
>
>Since I will be checking llDoRecap many times.
>
>What am I doing wrong?
>
>thanks.
You could use a logical variable, initialised to .F. or .T. & set that as the ControlSource property for the control & use it directly rather than need to use thisform.checkbox1.value
Len Speed