Solved

MS Access 2003 - Check Box size

Posted on 2010-11-19
6
926 Views
Last Modified: 2012-06-21
Is there any way to increase the check box size on a form. Once you place a check box on a form it displays very small. I wish to display the actual box larger so that the user can easily see when it is checked.

Thanks for your assistance
LAD
0
Comment
Question by:Lou Dufresne
6 Comments
 
LVL 14

Accepted Solution

by:
leoahmad earned 500 total points
ID: 34172680
Set your actual CheckBoxName.Visible to No.

Add an unbound label to the form detail section.
Set it's BackStyle to Normal.
BackColor to White
SpecialEffect to Sunken
BorderStyle to Solid
Caption to " " (a space)
Font to WingDings
FontSize to whatever you want (perhaps 14)
Place this label where you wish to see the check mark.
I've named it LabelLargeCheck.

Code the new Label's Click event:

Private Sub LabelLargeCheck_Click()
[CheckBoxName] = Not ([CheckBoxName])
If [CheckBoxName] = -1 Then
LabelLargeCheck.Caption = Chr(252)
Else
LabelLargeCheck.Caption = ""
End If
End Sub

Code the Form Current Event:

Private Sub Form_Current()
If [CheckBoxName] = -1 Then
LabelLargeCheck.Caption = Chr(252)
Else
LabelLargeCheck.Caption = ""
End If
End Sub

Adjust the height and width of the label so the check mark fits.
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.
That should do it.

Clicking on the new Label is equivalent to clicking on the CheckBox
field itself.
0
 
LVL 19

Expert Comment

by:MINDSUPERB
ID: 34173071
LAD,

You might not get what you want. The size of checkbox is fixed no matter how you increase its width and height in the property.

Sincerely,
Ed
0
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 34173167
LAD,
i've been using the same method/trick posted by leoahmad.. it works.
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 34176715
No,

You can however create two images of a checkbox (on ON and one OFF)
Then use code on the on click event to toggle the status

Here is a very basic sample

;-)

JeffCoachman
Access-EEQ-26626690BigCheckBox.mdb
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 34178424
Yes,

leoahmad's, post may be the most fitting...
0
 
LVL 1

Author Closing Comment

by:Lou Dufresne
ID: 34179955
?  Set your actual CheckBoxName.Visible to No.
Do I need to leave thisonthe form as visible=No

Thanks everyone for your guidance.
This code is really impressive.

0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now