We help IT Professionals succeed at work.

Using Option buttons

kelly1
kelly1 asked
on
167 Views
Last Modified: 2010-04-30
every time i use a option button in a calculation program i get -1 in the answer box
Comment
Watch Question

Commented:
What is the code you're using?  -1 is the same as True (or more accurately Not False)  Please ellaborate on your question.

Regards,
Sekans
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Hi kelly1,

Have you tried putting your calculations in variables ? This way, you only use your option buttons to indicate which variable to want in your calculations?

ex:
dim opt_var as long
opt_var = any number for calculation

if optionbutton is true then
opt_var * whatever
end if

Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.