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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create Large Check Boxes

How to

Create Large Check Boxes

by  SgtJarrow  Posted    (Edited  )
Access doesn't provide you a way to enlarge the check boxes. Sometimes this just isn't good enough. Sometimes you need or want check boxes that are larger than the default. Here's a simply way to do it.

Create a text box. Name it chkUnchecked. Set the Locked property to Yes. Set the font size to 18 (or whatever works for you).

Copy this text box. Name the copy chkChecked. Put a capital X in this new box. Set the Visible property to No. Place this text box directly over the first one, so the two are on top of each other.

Now, the code to make it all work. In the AfterUpdate event of txtUnchecked, put:

Me![txtUnchecked].Visible = False
Me![txtChecked].Visible = True

In the AfterUpdate event of txtChecked, reverse it, like:

Me![txtUnchecked].Visible = True
Me![txtChecked].Visible = False

That's it. You now have a check box that is bigger than standard. You have to remember to evaluate this later as needed. You will have to check to see which of the two text boxes are visible and set the checkbox field in your table or whatever as appropriate.
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top