G
Guest
I have created a form that uses 12 pt. fonts but the check boxes are very
small. Is it possible to increase the size of the checkboxes?
small. Is it possible to increase the size of the checkboxes?
I have created a form that uses 12 pt. fonts but the check boxes are very
small. Is it possible to increase the size of the checkboxes?
fredg said:I have created a form that uses 12 pt. fonts but the check boxes are very
small. Is it possible to increase the size of the checkboxes?
You can't make it bigger but you can work around it.
Here is the coding needed.
Set your actual CheckBoxName.Visible to No.
Add an unbound label to the form detail section.
Set its Caption to " " ( a space)
Set it's Font to WingDings
Set it's font size to whatever you want (perhaps 24)
Place this label where you wish to see the check mark.
Set it's special effects to Sunken (if you want).
Set it's BackColor to White (if you want).
I've named it LabelLargeCheck.
Code the new Label's Click event:
Private Sub LabelLargeCheck_Click()
[CheckBoxName] = Not ([CheckBoxName])
If [CheckBoxName] = True Then
LabelLargeCheck.Caption = Chr(252)
Else
LabelLargeCheck.Caption = " " ' a space
End If
End Sub
==========
Code the Form Current Event:
Private Sub Form_Current()
If Me.CheckBoxName = True Then
LabelLargeCheck.Caption = Chr(252)
Else
LabelLargeCheck.Caption = " " ' a space
End If
End Sub
===========
If you want a CheckBox field label then just add another unbound label
and set its caption to the CheckBox field name. Leave it Visible.
Don't forget to change the name of the CheckBoxName in this coding to
whatever your Checkbox field is.
After you open the form and use the check box label,
re-adjust the font size if needed, and the size of the label,
to square it around the check mark.
That should do it.
Note: because it's a label now, you can also change it's color, if you
want.
Clicking on the new Label is equivalent to clicking on the CheckBox
field itself.
fredg said:I have created a form that uses 12 pt. fonts but the check boxes are very
small. Is it possible to increase the size of the checkboxes?
You can't make it bigger but you can work around it.
Here is the coding needed.
Set your actual CheckBoxName.Visible to No.
Add an unbound label to the form detail section.
Set its Caption to " " ( a space)
Set it's Font to WingDings
Set it's font size to whatever you want (perhaps 24)
Place this label where you wish to see the check mark.
Set it's special effects to Sunken (if you want).
Set it's BackColor to White (if you want).
I've named it LabelLargeCheck.
Code the new Label's Click event:
Private Sub LabelLargeCheck_Click()
[CheckBoxName] = Not ([CheckBoxName])
If [CheckBoxName] = True Then
LabelLargeCheck.Caption = Chr(252)
Else
LabelLargeCheck.Caption = " " ' a space
End If
End Sub
==========
Code the Form Current Event:
Private Sub Form_Current()
If Me.CheckBoxName = True Then
LabelLargeCheck.Caption = Chr(252)
Else
LabelLargeCheck.Caption = " " ' a space
End If
End Sub
===========
If you want a CheckBox field label then just add another unbound label
and set its caption to the CheckBox field name. Leave it Visible.
Don't forget to change the name of the CheckBoxName in this coding to
whatever your Checkbox field is.
After you open the form and use the check box label,
re-adjust the font size if needed, and the size of the label,
to square it around the check mark.
That should do it.
Note: because it's a label now, you can also change it's color, if you
want.
Clicking on the new Label is equivalent to clicking on the CheckBox
field itself.
EXCELLENT! Thanks fredg!
Now, if you couldn't tell, I'm new at this. It looks like there's a LOT of
great and useful things you can do by using these snippets of code that
everyone posts - such as you have here. However...I have no idea what to do
with this code or where to put it. It sounds like your answer is just what
I'm looking for but I have no idea how to use it. Any tips on some good
resources? Thanks again!
Tripacer
fredg said:I have created a form that uses 12 pt. fonts but the check boxes are very
small. Is it possible to increase the size of the checkboxes?
You can't make it bigger but you can work around it.
Here is the coding needed.
Set your actual CheckBoxName.Visible to No.
Add an unbound label to the form detail section.
Set its Caption to " " ( a space)
Set it's Font to WingDings
Set it's font size to whatever you want (perhaps 24)
Place this label where you wish to see the check mark.
Set it's special effects to Sunken (if you want).
Set it's BackColor to White (if you want).
I've named it LabelLargeCheck.
Code the new Label's Click event:
Private Sub LabelLargeCheck_Click()
[CheckBoxName] = Not ([CheckBoxName])
If [CheckBoxName] = True Then
LabelLargeCheck.Caption = Chr(252)
Else
LabelLargeCheck.Caption = " " ' a space
End If
End Sub
==========
Code the Form Current Event:
Private Sub Form_Current()
If Me.CheckBoxName = True Then
LabelLargeCheck.Caption = Chr(252)
Else
LabelLargeCheck.Caption = " " ' a space
End If
End Sub
===========
If you want a CheckBox field label then just add another unbound label
and set its caption to the CheckBox field name. Leave it Visible.
Don't forget to change the name of the CheckBoxName in this coding to
whatever your Checkbox field is.
After you open the form and use the check box label,
re-adjust the font size if needed, and the size of the label,
to square it around the check mark.
That should do it.
Note: because it's a label now, you can also change it's color, if you
want.
Clicking on the new Label is equivalent to clicking on the CheckBox
field itself.
Tripacer said:EXCELLENT! Thanks fredg!
Now, if you couldn't tell, I'm new at this. It looks like there's a LOT of
great and useful things you can do by using these snippets of code that
everyone posts - such as you have here. However...I have no idea what to do
with this code or where to put it. It sounds like your answer is just what
I'm looking for but I have no idea how to use it. Any tips on some good
resources? Thanks again!
Tripacer
fredg said:I have created a form that uses 12 pt. fonts but the check boxes are very
small. Is it possible to increase the size of the checkboxes?
You can't make it bigger but you can work around it.
Here is the coding needed.
Set your actual CheckBoxName.Visible to No.
Add an unbound label to the form detail section.
Set its Caption to " " ( a space)
Set it's Font to WingDings
Set it's font size to whatever you want (perhaps 24)
Place this label where you wish to see the check mark.
Set it's special effects to Sunken (if you want).
Set it's BackColor to White (if you want).
I've named it LabelLargeCheck.
Code the new Label's Click event:
Private Sub LabelLargeCheck_Click()
[CheckBoxName] = Not ([CheckBoxName])
If [CheckBoxName] = True Then
LabelLargeCheck.Caption = Chr(252)
Else
LabelLargeCheck.Caption = " " ' a space
End If
End Sub
==========
Code the Form Current Event:
Private Sub Form_Current()
If Me.CheckBoxName = True Then
LabelLargeCheck.Caption = Chr(252)
Else
LabelLargeCheck.Caption = " " ' a space
End If
End Sub
===========
If you want a CheckBox field label then just add another unbound label
and set its caption to the CheckBox field name. Leave it Visible.
Don't forget to change the name of the CheckBoxName in this coding to
whatever your Checkbox field is.
After you open the form and use the check box label,
re-adjust the font size if needed, and the size of the label,
to square it around the check mark.
That should do it.
Note: because it's a label now, you can also change it's color, if you
want.
Clicking on the new Label is equivalent to clicking on the CheckBox
field itself.
Mary said:Not sure if you'll still be checking back, but I think the piece you're
missing is where to put the code. Right-click on the label and go to the
properties Event tab. Next to On Click, click the ... and select Code
Builder. Copy and Paste Fredg's code there.
HTH,
Mary
Tripacer said:EXCELLENT! Thanks fredg!
Now, if you couldn't tell, I'm new at this. It looks like there's a LOT of
great and useful things you can do by using these snippets of code that
everyone posts - such as you have here. However...I have no idea what to do
with this code or where to put it. It sounds like your answer is just what
I'm looking for but I have no idea how to use it. Any tips on some good
resources? Thanks again!
Tripacer
fredg said:On Sun, 24 Apr 2005 12:28:01 -0700, Tripacer wrote:
I have created a form that uses 12 pt. fonts but the check boxes are very
small. Is it possible to increase the size of the checkboxes?
You can't make it bigger but you can work around it.
Here is the coding needed.
Set your actual CheckBoxName.Visible to No.
Add an unbound label to the form detail section.
Set its Caption to " " ( a space)
Set it's Font to WingDings
Set it's font size to whatever you want (perhaps 24)
Place this label where you wish to see the check mark.
Set it's special effects to Sunken (if you want).
Set it's BackColor to White (if you want).
I've named it LabelLargeCheck.
Code the new Label's Click event:
Private Sub LabelLargeCheck_Click()
[CheckBoxName] = Not ([CheckBoxName])
If [CheckBoxName] = True Then
LabelLargeCheck.Caption = Chr(252)
Else
LabelLargeCheck.Caption = " " ' a space
End If
End Sub
==========
Code the Form Current Event:
Private Sub Form_Current()
If Me.CheckBoxName = True Then
LabelLargeCheck.Caption = Chr(252)
Else
LabelLargeCheck.Caption = " " ' a space
End If
End Sub
===========
If you want a CheckBox field label then just add another unbound label
and set its caption to the CheckBox field name. Leave it Visible.
Don't forget to change the name of the CheckBoxName in this coding to
whatever your Checkbox field is.
After you open the form and use the check box label,
re-adjust the font size if needed, and the size of the label,
to square it around the check mark.
That should do it.
Note: because it's a label now, you can also change it's color, if you
want.
Clicking on the new Label is equivalent to clicking on the CheckBox
field itself.
jan said:I am trying to do the same thing for a report. The check box is miniscule
and I want to make it bigger. I have followed all the steps through for the
form but when I click on the properties box there is nothing in the event
list it is blanked out. Any help appreciated.
Mary said:Not sure if you'll still be checking back, but I think the piece you're
missing is where to put the code. Right-click on the label and go to the
properties Event tab. Next to On Click, click the ... and select Code
Builder. Copy and Paste Fredg's code there.
HTH,
Mary
Tripacer said:EXCELLENT! Thanks fredg!
Now, if you couldn't tell, I'm new at this. It looks like there's a LOT of
great and useful things you can do by using these snippets of code that
everyone posts - such as you have here. However...I have no idea what to do
with this code or where to put it. It sounds like your answer is just what
I'm looking for but I have no idea how to use it. Any tips on some good
resources? Thanks again!
Tripacer
:
On Sun, 24 Apr 2005 12:28:01 -0700, Tripacer wrote:
I have created a form that uses 12 pt. fonts but the check boxes are very
small. Is it possible to increase the size of the checkboxes?
You can't make it bigger but you can work around it.
Here is the coding needed.
Set your actual CheckBoxName.Visible to No.
Add an unbound label to the form detail section.
Set its Caption to " " ( a space)
Set it's Font to WingDings
Set it's font size to whatever you want (perhaps 24)
Place this label where you wish to see the check mark.
Set it's special effects to Sunken (if you want).
Set it's BackColor to White (if you want).
I've named it LabelLargeCheck.
Code the new Label's Click event:
Private Sub LabelLargeCheck_Click()
[CheckBoxName] = Not ([CheckBoxName])
If [CheckBoxName] = True Then
LabelLargeCheck.Caption = Chr(252)
Else
LabelLargeCheck.Caption = " " ' a space
End If
End Sub
==========
Code the Form Current Event:
Private Sub Form_Current()
If Me.CheckBoxName = True Then
LabelLargeCheck.Caption = Chr(252)
Else
LabelLargeCheck.Caption = " " ' a space
End If
End Sub
===========
If you want a CheckBox field label then just add another unbound label
and set its caption to the CheckBox field name. Leave it Visible.
Don't forget to change the name of the CheckBoxName in this coding to
whatever your Checkbox field is.
After you open the form and use the check box label,
re-adjust the font size if needed, and the size of the label,
to square it around the check mark.
That should do it.
Note: because it's a label now, you can also change it's color, if you
want.
Clicking on the new Label is equivalent to clicking on the CheckBox
field itself.
jan said:I am trying to do the same thing for a report. The check box is miniscule
and I want to make it bigger. I have followed all the steps through for
the
form but when I click on the properties box there is nothing in the event
list it is blanked out. Any help appreciated.
Mary said:Not sure if you'll still be checking back, but I think the piece you're
missing is where to put the code. Right-click on the label and go to the
properties Event tab. Next to On Click, click the ... and select Code
Builder. Copy and Paste Fredg's code there.
HTH,
Mary
Tripacer said:EXCELLENT! Thanks fredg!
Now, if you couldn't tell, I'm new at this. It looks like there's a
LOT of
great and useful things you can do by using these snippets of code that
everyone posts - such as you have here. However...I have no idea what
to do
with this code or where to put it. It sounds like your answer is just
what
I'm looking for but I have no idea how to use it. Any tips on some
good
resources? Thanks again!
Tripacer
:
On Sun, 24 Apr 2005 12:28:01 -0700, Tripacer wrote:
I have created a form that uses 12 pt. fonts but the check boxes
are very
small. Is it possible to increase the size of the checkboxes?
You can't make it bigger but you can work around it.
Here is the coding needed.
Set your actual CheckBoxName.Visible to No.
Add an unbound label to the form detail section.
Set its Caption to " " ( a space)
Set it's Font to WingDings
Set it's font size to whatever you want (perhaps 24)
Place this label where you wish to see the check mark.
Set it's special effects to Sunken (if you want).
Set it's BackColor to White (if you want).
I've named it LabelLargeCheck.
Code the new Label's Click event:
Private Sub LabelLargeCheck_Click()
[CheckBoxName] = Not ([CheckBoxName])
If [CheckBoxName] = True Then
LabelLargeCheck.Caption = Chr(252)
Else
LabelLargeCheck.Caption = " " ' a space
End If
End Sub
==========
Code the Form Current Event:
Private Sub Form_Current()
If Me.CheckBoxName = True Then
LabelLargeCheck.Caption = Chr(252)
Else
LabelLargeCheck.Caption = " " ' a space
End If
End Sub
===========
If you want a CheckBox field label then just add another unbound
label
and set its caption to the CheckBox field name. Leave it Visible.
Don't forget to change the name of the CheckBoxName in this coding to
whatever your Checkbox field is.
After you open the form and use the check box label,
re-adjust the font size if needed, and the size of the label,
to square it around the check mark.
That should do it.
Note: because it's a label now, you can also change it's color, if
you
want.
Clicking on the new Label is equivalent to clicking on the CheckBox
field itself.