View Full Version : Help with Check boxes


Rupelo
11-23-2006, 06:28 AM
Hell there all... I have a little problem and it goes a little something like this

I have seven check boxes that correspond with the numbers 1- 7

I would like to know, when I generate my report how do I get the checked boxes to display their respective numbers and the unchecked ones to display nothing?

thankig u all in advance
Sin Cero
Rupelo
:) :)

Rickster57
11-23-2006, 06:34 AM
In the OnPrint event of your report place this.

If [checkbox1]=-1 then
[textbox1]=1
else [textbox1]=""
end if


Place a texbox for each checkbox in your report and use the above code.
There are several ways to do this, this is just a simple case.
The -1 means that the checkbox was checked.