I have 4 option groups with the same choices in each group so I want to
create a module with a public function that would be activated on_click
event.
Public Function OptionSelection(varOption As Variant)
Select Case Forms!frmRecruitment!varOption.Value
Case 1
Forms!frmRecruitment!varOption.Value = 1
Case 2
Forms!frmRecruitment.varOption.Value = 2
Case 3
Forms!frmRecruitment.varOption.Value = 5
End Select
If Forms!frmRecruitment.varOption.Value = 5 Then
Forms!frmRecruitment.strRemarks.SetFocus
End If
End Function
I get a run-time error 2465
Microsoft Access can't find the field "varOption" referred to in your
expression. Can someone please tell me what is wrong with this code?
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!