T
toolman74
In Access 2003, is there anyway to change the size of a check box? If not,
does another edition offer this? Thanks!
Pamela
does another edition offer this? Thanks!
Pamela
In Access 2003, is there anyway to change the size of a check box? If not,
does another edition offer this? Thanks!
Pamela
fredg said:In Access 2003, is there anyway to change the size of a check box? If not,
does another edition offer this? Thanks!
Pamela
No you can't make the Access check box bigger, but you can work around
it.
Add an unbound text control to the form.
Set it's FontStyle to Wingdings.
Set it's FontSize to 24 (to start with).
Set the control's Width property to 0.3"
Set it's height to 0.3"
Set it's BorderStyle to Solid.
Border Width to 1 pt.
Name this control 'LargeCheck'.
Code itʼs click event:
Me.[CheckBoxName] = Not Me.[CheckBoxName]
If Me.[CheckBoxName] = True Then
Me.LargeCheck = Chr(252)
Else
Me.LargeCheck = ""
End If
Code the Form's Current event:
If Me.[CheckBoxName] = True Then
Me.LargeCheck = Chr(252)
Else
Me.LargeCheck = ""
End If
Clicking the cursor on the LargeCheck control will toggle it's value
just as a regular check box.
Note: You can colorize this control also.
Change the FontSize and the controls width and height as wanted.
Thanks, but I am now getting a mismatch error 13...I cut and pasted your code
into it and then replaced accordingly with the name you suggested,
LargeCheck. Here is my exact code:
Private Sub Form_Current()
If Me.[LargeCheck] = True Then
Me.LargeCheck = Chr(252)
Else
Me.LargeCheck = ""
End If
End Sub
Private Sub LargeCheck_Click()
Me.[LargeCheck] = Not Me.[LargeCheck]
If Me.[LargeCheck] = True Then
Me.LargeCheck = Chr(252)
Else
Me.LargeCheck = ""
End If
End Sub
Thanks so much!
fredg said:In Access 2003, is there anyway to change the size of a check box? If not,
does another edition offer this? Thanks!
Pamela
No you can't make the Access check box bigger, but you can work around
it.
Add an unbound text control to the form.
Set it's FontStyle to Wingdings.
Set it's FontSize to 24 (to start with).
Set the control's Width property to 0.3"
Set it's height to 0.3"
Set it's BorderStyle to Solid.
Border Width to 1 pt.
Name this control 'LargeCheck'.
Code itʼs click event:
Me.[CheckBoxName] = Not Me.[CheckBoxName]
If Me.[CheckBoxName] = True Then
Me.LargeCheck = Chr(252)
Else
Me.LargeCheck = ""
End If
Code the Form's Current event:
If Me.[CheckBoxName] = True Then
Me.LargeCheck = Chr(252)
Else
Me.LargeCheck = ""
End If
Clicking the cursor on the LargeCheck control will toggle it's value
just as a regular check box.
Note: You can colorize this control also.
Change the FontSize and the controls width and height as wanted.
fredg said:Thanks, but I am now getting a mismatch error 13...I cut and pasted your code
into it and then replaced accordingly with the name you suggested,
LargeCheck. Here is my exact code:
Private Sub Form_Current()
If Me.[LargeCheck] = True Then
Me.LargeCheck = Chr(252)
Else
Me.LargeCheck = ""
End If
End Sub
Private Sub LargeCheck_Click()
Me.[LargeCheck] = Not Me.[LargeCheck]
If Me.[LargeCheck] = True Then
Me.LargeCheck = Chr(252)
Else
Me.LargeCheck = ""
End If
End Sub
Thanks so much!
fredg said:On Wed, 18 Jun 2008 11:28:00 -0700, toolman74 wrote:
In Access 2003, is there anyway to change the size of a check box? If not,
does another edition offer this? Thanks!
Pamela
No you can't make the Access check box bigger, but you can work around
it.
Add an unbound text control to the form.
Set it's FontStyle to Wingdings.
Set it's FontSize to 24 (to start with).
Set the control's Width property to 0.3"
Set it's height to 0.3"
Set it's BorderStyle to Solid.
Border Width to 1 pt.
Name this control 'LargeCheck'.
Code itʼs click event:
Me.[CheckBoxName] = Not Me.[CheckBoxName]
If Me.[CheckBoxName] = True Then
Me.LargeCheck = Chr(252)
Else
Me.LargeCheck = ""
End If
Code the Form's Current event:
If Me.[CheckBoxName] = True Then
Me.LargeCheck = Chr(252)
Else
Me.LargeCheck = ""
End If
Clicking the cursor on the LargeCheck control will toggle it's value
just as a regular check box.
Note: You can colorize this control also.
Change the FontSize and the controls width and height as wanted.
You replaced [CheckBoxName] with the incorrect name.
None of us can 'see' your database, so sometimes we have to use
generic control names instead of your actual control names.
[CheckBoxName] is my generic control name.
You should have replaced that with the actual name of your existing
check box control.
"LargeCheck" is the name of the new text control you just added.
Me.[CheckBoxName] = Not Me.[CheckBoxName]
is what I wrote.
You changed it to
Me.[LargeCheck] = Not Me.[LargeCheck]
It should be
Me.[The current name of your check box] = Not Me.[The current name of
your check box]
If Me.[The current name of your check box] = True then
Also change [CheckBoxName] in the form's Current event.
Everything else looks OK as is.
toolman74 said:So sorry. In re-reading my post I realize that maybe I wasn't clear that I
already did rename my check box, as your original post suggested, to
LargeCheck. Which is why I inserted the name LargeCheck in all of those
places. So the box name is LargeCheck and my code is as I listed in my
previous post but again, this yields me the mismatch 13 error. When I
changed the name of the text box, I did it under Properties, Other, Name.
When I select this control, the object box lists it as LargeCheck so I'm
confused as to why it isn't working... Thanks so much for your patience and
persistence!!If Me.[LargeCheck] = True Then
Me.LargeCheck = Chr(252)
Tom Lake said:toolman74 said:So sorry. In re-reading my post I realize that maybe I wasn't clear that I
already did rename my check box, as your original post suggested, to
LargeCheck. Which is why I inserted the name LargeCheck in all of those
places. So the box name is LargeCheck and my code is as I listed in my
previous post but again, this yields me the mismatch 13 error. When I
changed the name of the text box, I did it under Properties, Other, Name.
When I select this control, the object box lists it as LargeCheck so I'm
confused as to why it isn't working... Thanks so much for your patience and
persistence!!If Me.[LargeCheck] = True Then
Me.LargeCheck = Chr(252)
Either LargeCheck is a Boolean field or a character field. You treat it as
a Boolean (Yes/No) in the If statement but as a character in the assignment.
Tom Lake
toolman74 said:So sorry. In re-reading my post I realize that maybe I wasn't clear that
I
already did rename my check box, as your original post suggested, to
LargeCheck. Which is why I inserted the name LargeCheck in all of those
places. So the box name is LargeCheck and my code is as I listed in my
previous post but again, this yields me the mismatch 13 error. When I
changed the name of the text box, I did it under Properties, Other, Name.
When I select this control, the object box lists it as LargeCheck so I'm
confused as to why it isn't working... Thanks so much for your patience
and
persistence!!
Pamela
fredg said:Thanks, but I am now getting a mismatch error 13...I cut and pasted
your code
into it and then replaced accordingly with the name you suggested,
LargeCheck. Here is my exact code:
Private Sub Form_Current()
If Me.[LargeCheck] = True Then
Me.LargeCheck = Chr(252)
Else
Me.LargeCheck = ""
End If
End Sub
Private Sub LargeCheck_Click()
Me.[LargeCheck] = Not Me.[LargeCheck]
If Me.[LargeCheck] = True Then
Me.LargeCheck = Chr(252)
Else
Me.LargeCheck = ""
End If
End Sub
Thanks so much!
:
On Wed, 18 Jun 2008 11:28:00 -0700, toolman74 wrote:
In Access 2003, is there anyway to change the size of a check box?
If not,
does another edition offer this? Thanks!
Pamela
No you can't make the Access check box bigger, but you can work around
it.
Add an unbound text control to the form.
Set it's FontStyle to Wingdings.
Set it's FontSize to 24 (to start with).
Set the control's Width property to 0.3"
Set it's height to 0.3"
Set it's BorderStyle to Solid.
Border Width to 1 pt.
Name this control 'LargeCheck'.
Code itʼs click event:
Me.[CheckBoxName] = Not Me.[CheckBoxName]
If Me.[CheckBoxName] = True Then
Me.LargeCheck = Chr(252)
Else
Me.LargeCheck = ""
End If
Code the Form's Current event:
If Me.[CheckBoxName] = True Then
Me.LargeCheck = Chr(252)
Else
Me.LargeCheck = ""
End If
Clicking the cursor on the LargeCheck control will toggle it's value
just as a regular check box.
Note: You can colorize this control also.
Change the FontSize and the controls width and height as wanted.
You replaced [CheckBoxName] with the incorrect name.
None of us can 'see' your database, so sometimes we have to use
generic control names instead of your actual control names.
[CheckBoxName] is my generic control name.
You should have replaced that with the actual name of your existing
check box control.
"LargeCheck" is the name of the new text control you just added.
Me.[CheckBoxName] = Not Me.[CheckBoxName]
is what I wrote.
You changed it to
Me.[LargeCheck] = Not Me.[LargeCheck]
It should be
Me.[The current name of your check box] = Not Me.[The current name of
your check box]
If Me.[The current name of your check box] = True then
Also change [CheckBoxName] in the form's Current event.
Everything else looks OK as is.
BruceM said:LargeCheck is the name of the visible check box, but the "real" check box is
the hidden one. You need something like this in the Click event:
Me.[RealCheckBox] = Not Me.[RealCheckBox]
If Me.[RealCheckBox] = True Then
Me.LargeCheck = Chr(252)
Else
Me.LargeCheck = ""
End If
Similarly, the Current event would test for the value in RealCheckBox, and
assign a value to LargeCheck accordingly.
toolman74 said:So sorry. In re-reading my post I realize that maybe I wasn't clear that
I
already did rename my check box, as your original post suggested, to
LargeCheck. Which is why I inserted the name LargeCheck in all of those
places. So the box name is LargeCheck and my code is as I listed in my
previous post but again, this yields me the mismatch 13 error. When I
changed the name of the text box, I did it under Properties, Other, Name.
When I select this control, the object box lists it as LargeCheck so I'm
confused as to why it isn't working... Thanks so much for your patience
and
persistence!!
Pamela
fredg said:On Wed, 18 Jun 2008 20:05:00 -0700, toolman74 wrote:
Thanks, but I am now getting a mismatch error 13...I cut and pasted
your code
into it and then replaced accordingly with the name you suggested,
LargeCheck. Here is my exact code:
Private Sub Form_Current()
If Me.[LargeCheck] = True Then
Me.LargeCheck = Chr(252)
Else
Me.LargeCheck = ""
End If
End Sub
Private Sub LargeCheck_Click()
Me.[LargeCheck] = Not Me.[LargeCheck]
If Me.[LargeCheck] = True Then
Me.LargeCheck = Chr(252)
Else
Me.LargeCheck = ""
End If
End Sub
Thanks so much!
:
On Wed, 18 Jun 2008 11:28:00 -0700, toolman74 wrote:
In Access 2003, is there anyway to change the size of a check box?
If not,
does another edition offer this? Thanks!
Pamela
No you can't make the Access check box bigger, but you can work around
it.
Add an unbound text control to the form.
Set it's FontStyle to Wingdings.
Set it's FontSize to 24 (to start with).
Set the control's Width property to 0.3"
Set it's height to 0.3"
Set it's BorderStyle to Solid.
Border Width to 1 pt.
Name this control 'LargeCheck'.
Code itʼs click event:
Me.[CheckBoxName] = Not Me.[CheckBoxName]
If Me.[CheckBoxName] = True Then
Me.LargeCheck = Chr(252)
Else
Me.LargeCheck = ""
End If
Code the Form's Current event:
If Me.[CheckBoxName] = True Then
Me.LargeCheck = Chr(252)
Else
Me.LargeCheck = ""
End If
Clicking the cursor on the LargeCheck control will toggle it's value
just as a regular check box.
Note: You can colorize this control also.
Change the FontSize and the controls width and height as wanted.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
You replaced [CheckBoxName] with the incorrect name.
None of us can 'see' your database, so sometimes we have to use
generic control names instead of your actual control names.
[CheckBoxName] is my generic control name.
You should have replaced that with the actual name of your existing
check box control.
"LargeCheck" is the name of the new text control you just added.
Me.[CheckBoxName] = Not Me.[CheckBoxName]
is what I wrote.
You changed it to
Me.[LargeCheck] = Not Me.[LargeCheck]
It should be
Me.[The current name of your check box] = Not Me.[The current name of
your check box]
If Me.[The current name of your check box] = True then
Also change [CheckBoxName] in the form's Current event.
Everything else looks OK as is.
toolman74 said:Great! It's all becoming more clear. Where do I find the name for the
"realcheckbox?" Are you talking about the underlying field that I have in
my
table which is a Yes/No?
BruceM said:LargeCheck is the name of the visible check box, but the "real" check box
is
the hidden one. You need something like this in the Click event:
Me.[RealCheckBox] = Not Me.[RealCheckBox]
If Me.[RealCheckBox] = True Then
Me.LargeCheck = Chr(252)
Else
Me.LargeCheck = ""
End If
Similarly, the Current event would test for the value in RealCheckBox,
and
assign a value to LargeCheck accordingly.
toolman74 said:So sorry. In re-reading my post I realize that maybe I wasn't clear
that
I
already did rename my check box, as your original post suggested, to
LargeCheck. Which is why I inserted the name LargeCheck in all of
those
places. So the box name is LargeCheck and my code is as I listed in my
previous post but again, this yields me the mismatch 13 error. When I
changed the name of the text box, I did it under Properties, Other,
Name.
When I select this control, the object box lists it as LargeCheck so
I'm
confused as to why it isn't working... Thanks so much for your
patience
and
persistence!!
Pamela
:
On Wed, 18 Jun 2008 20:05:00 -0700, toolman74 wrote:
Thanks, but I am now getting a mismatch error 13...I cut and pasted
your code
into it and then replaced accordingly with the name you suggested,
LargeCheck. Here is my exact code:
Private Sub Form_Current()
If Me.[LargeCheck] = True Then
Me.LargeCheck = Chr(252)
Else
Me.LargeCheck = ""
End If
End Sub
Private Sub LargeCheck_Click()
Me.[LargeCheck] = Not Me.[LargeCheck]
If Me.[LargeCheck] = True Then
Me.LargeCheck = Chr(252)
Else
Me.LargeCheck = ""
End If
End Sub
Thanks so much!
:
On Wed, 18 Jun 2008 11:28:00 -0700, toolman74 wrote:
In Access 2003, is there anyway to change the size of a check box?
If not,
does another edition offer this? Thanks!
Pamela
No you can't make the Access check box bigger, but you can work
around
it.
Add an unbound text control to the form.
Set it's FontStyle to Wingdings.
Set it's FontSize to 24 (to start with).
Set the control's Width property to 0.3"
Set it's height to 0.3"
Set it's BorderStyle to Solid.
Border Width to 1 pt.
Name this control 'LargeCheck'.
Code itʼs click event:
Me.[CheckBoxName] = Not Me.[CheckBoxName]
If Me.[CheckBoxName] = True Then
Me.LargeCheck = Chr(252)
Else
Me.LargeCheck = ""
End If
Code the Form's Current event:
If Me.[CheckBoxName] = True Then
Me.LargeCheck = Chr(252)
Else
Me.LargeCheck = ""
End If
Clicking the cursor on the LargeCheck control will toggle it's
value
just as a regular check box.
Note: You can colorize this control also.
Change the FontSize and the controls width and height as wanted.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
You replaced [CheckBoxName] with the incorrect name.
None of us can 'see' your database, so sometimes we have to use
generic control names instead of your actual control names.
[CheckBoxName] is my generic control name.
You should have replaced that with the actual name of your existing
check box control.
"LargeCheck" is the name of the new text control you just added.
Me.[CheckBoxName] = Not Me.[CheckBoxName]
is what I wrote.
You changed it to
Me.[LargeCheck] = Not Me.[LargeCheck]
It should be
Me.[The current name of your check box] = Not Me.[The current name of
your check box]
If Me.[The current name of your check box] = True then
Also change [CheckBoxName] in the form's Current event.
Everything else looks OK as is.