Convert all the old check box controls on a form to a modern style. (4 Viewers)

xavier.batlle

Active member
Local time
Today, 15:30
Joined
Sep 1, 2023
Messages
231
After reading this article by Colin @isladogs : https://www.isladogs.co.uk/settings-form-toggle/index.html, I thought it would be a good idea to find a simple way to convert existing forms with many checkboxes to a new modern style easily.

So, I came up with the idea of creating a form wrapper class that "converts" all the checkboxes to the new style.
To do this, you just need to create a command button with the checkbox name plus the suffix "_button" for each checkbox you want to convert and add a couple of lines of code to the form module.
1769611395570.png


The class updates the value and button style when changes the checkbox value or the current record.
This approach doesn't work on continuous forms!!!
 

Attachments

Last edited:
You might also want to review this link
 
many has already done that before:
 
Its good to see further development of this concept since I first floated the idea back in 2017

I had completely forgotten the thread linked in post #3 which also includes Mike Wolfe and Steve Halder's variation from 2022 using toggle buttons:

In addition to this interesting approach using class modules by @xavier.batlle, former MVP, Dale Fye, contacted me with his own take on the subject using subforms. He has now posted an article at Experts Exchange with his approach:

Although EE is behind a paywall, links to a specific article such as that above, do still work.

Happy toggling!
 
Last edited:

Users who are viewing this thread

Back
Top Bottom