-
I have a cmdSpin command button to calculate three random # from 1 to 7. Also, there is a frame with three options for your wager of $1.00, $5.00, and $10.00.
2 Labels - Current Winnings and Total Winnings
There are 3 text boxes in an array txt(0), txt(1), txt(2) where the random numbers are sent to with print.
How do I get the wager amount to calculate with a spin?
-
You want to check if either $1, $5, or $10 is selected? Assuming the names of your OptionButtons are opt1, for $1, opt5 for $5, and opt10 for $10.
Code:
If opt1.Value = True Then
'$1.00 is wagered
ElseIf opt5.Value = True Then
'$5.00 is wagered
Else
'$10.00 is wagered
End If