G
Guest
Tryng to place 4 Option Groups in Form_Current so that I can see text vales in bith table and on form. I was able to get one to work but if I try 2 or more I get ambiguous name with Form_Current although the fist one says Form_Current()
Below is the sample I followed. I first had to place a test box on the form to convert the numbers to test and this below will allow one to see what is selected on the form.
What is the secret if using 2 or more option groups in this case? Like I said one works great.
Private Sub Form_Current()
' This procedure examines the value of the Department
' field as displayed in the Department text box and
' sets the value of the option group (Frame6) to the
' appropriate number.
Select Case Department.Value
Case "Design"
Frame6.Value = 1
Case "Production"
Frame6.Value = 2
Case "Marketing"
Frame6.Value = 3
Case "Sales"
Frame6.Value = 4
Case "Shipping"
Frame6.Value = 5
Case Else
Frame6.Value = Null
End Select
End Sub
Below is the sample I followed. I first had to place a test box on the form to convert the numbers to test and this below will allow one to see what is selected on the form.
What is the secret if using 2 or more option groups in this case? Like I said one works great.
Private Sub Form_Current()
' This procedure examines the value of the Department
' field as displayed in the Department text box and
' sets the value of the option group (Frame6) to the
' appropriate number.
Select Case Department.Value
Case "Design"
Frame6.Value = 1
Case "Production"
Frame6.Value = 2
Case "Marketing"
Frame6.Value = 3
Case "Sales"
Frame6.Value = 4
Case "Shipping"
Frame6.Value = 5
Case Else
Frame6.Value = Null
End Select
End Sub