Access Option group question

F

fredg

In using an option group, is there a way to set the option value at 1.5, 2.5,
etc.?

No. The value of an Option Group is an Integer, which by definition is
a whole number.
What possible difference could it make if the values were 1, 2, 3 or
1.5, 2.5, 3.5?
 
U

UpRider

Fake it and make it whatever you want.

Private Sub cmdRun1_Click()
Dim strFake as string
Select Case grpMyGroupOpt.Value
Case 1
strFake = "1.5"
Case 2
strFake = "4.00004"
Case else
strFake = "beats me"
End Select
End Sub

HTH, UpRider
 
U

UpRider

Sure. You can dim strFake as a number. Remove the quotes from after
strFake =, and calculate away.
 

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