I am new to access and i am trying for few days to get this work for my assignment. So i have a option group, which consists of 4 options. If i toggle option 1 the value in an unbound textbox would be 50, if option 2 it will be 50, if option 3 it will be 100 and if i toggle option 4 its value is 0. I cant seem to get it to work, heres my code in vba. Extratotal is an unbound textbox, the opt1 to opt4 is the name of the option buttons. Their option values are 1-4. How can i get this to work? Help is greatly appreciated.
Private Sub Frame72_AfterUpdate()
Select Case Frame72.Value
Case 1
Me.opt1.Value = 1
Me.extratotal.Value = "50"
Case 2
Me.opt2.Value = 2
Me.extratotal.Value = "50"
Case 3
Me.opt3.Value = 3
Me.extratotal.Value = "100"
Case 4
Me.opt4.Value = 4
Me.extratotal.Value = "0"
End Select
End Sub
Private Sub Frame72_AfterUpdate()
Select Case Frame72.Value
Case 1
Me.opt1.Value = 1
Me.extratotal.Value = "50"
Case 2
Me.opt2.Value = 2
Me.extratotal.Value = "50"
Case 3
Me.opt3.Value = 3
Me.extratotal.Value = "100"
Case 4
Me.opt4.Value = 4
Me.extratotal.Value = "0"
End Select
End Sub