Toggle button

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
 
S

Stuart McCall

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top