Pedigreeman
Registered User.
- Local time
- Today, 09:01
- Joined
- Mar 14, 2011
- Messages
- 57
Hello all,
I would appreciate some help with the following:
I have two images per record on a form (img1 and img2). I want their visibility to be determined by a single clickable button (btn1). Once clicked on I would like this button to change its text caption to either 'On' or 'Off' and the image visibility of img1 and img2 will both correspond to this value. This would be an unbound button, with its value applying to all records.
I am afraid that so far I have only been able to create the button. In the 'On click' event procedure I am unsure of the correct code which will check what the current caption and value of the button is, and change it to the alternative caption and value once clicked.
Many thanks in advance,
Mark
I would appreciate some help with the following:
I have two images per record on a form (img1 and img2). I want their visibility to be determined by a single clickable button (btn1). Once clicked on I would like this button to change its text caption to either 'On' or 'Off' and the image visibility of img1 and img2 will both correspond to this value. This would be an unbound button, with its value applying to all records.
I am afraid that so far I have only been able to create the button. In the 'On click' event procedure I am unsure of the correct code which will check what the current caption and value of the button is, and change it to the alternative caption and value once clicked.
Many thanks in advance,
Mark