Solved

MS Access 2003 - Check Box size

Posted on 2010-11-19
6
908 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

758 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

16 Experts available now in Live!

Get 1:1 Help Now