Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

check box

Status
Not open for further replies.

simanot

Programmer
Aug 29, 2002
10
US
I want to change the shape of check box in my form from checkmark to ( X ) shape how can I do that.
 
As far as I know this can not be dome, perhaps this is why its called a "checkBox" ;-)
Herman
 
As the previous reply stated, you can't. You can however do something like;
make the checkbox a text box looks like a checkbox, sunken with whitebackground, font = arial, 8, bold.
In properties, make the name = txtCheckBox

Then assign the following code the the click event;

Private Sub txtCheckBox_Click()
If Me!txtCheckBox.Value = "X" Then
Me!txtCheckBox.Value = ""
Else
Me!txtCheckBox.Value = "X"
End If
' goto next control or whatever...
' DoCmd.GoToControl "your Next Control"
End Sub

So when user clicks, it will toggle display of X and "".
You can then interrogate .Value.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top