Toggle button

  • Thread starter Thread starter rum23
  • Start date Start date
R

rum23

I have couple of toggle button controls on the form and I am using
Me.Toggle2.Value to retrieve its value (to check if it pressed), but
Me.Toggle2.Value gives me an error "You entered an expression that has no
value". How can I check the value of a toggle button control?

Thanks
 
rum23 said:
I have couple of toggle button controls on the form and I am using
Me.Toggle2.Value to retrieve its value (to check if it pressed), but
Me.Toggle2.Value gives me an error "You entered an expression that has no
value". How can I check the value of a toggle button control?

Thanks

1. Place an option group control on your form
2. Select both toggle buttons and CUT them to the clipboard
3. Select the option group and PASTE the controls into it
4. To determine which button was clicked, check the .Value property of the
option group
 
Back
Top