Hi everyone
I have an option group called "Gender" in a form. Selecting male returns a "1" to the table I have. For femlae it is "2". What I'm trying to do is have the table return "Male" or "Female" to the table instead, not a number. I've tried this code (please bare in mind that I am so much an amateur with this stuff!).
Private Sub Gender_AfterUpdate(Cancel As Integer)
If Gender = 1 Then
tbl [Initial Patient Report]![Gender] = "Male"
End If
End Sub
As you guessed, I get all sorts of errors. Please help.
Thanks,
Dean
I have an option group called "Gender" in a form. Selecting male returns a "1" to the table I have. For femlae it is "2". What I'm trying to do is have the table return "Male" or "Female" to the table instead, not a number. I've tried this code (please bare in mind that I am so much an amateur with this stuff!).
Private Sub Gender_AfterUpdate(Cancel As Integer)
If Gender = 1 Then
tbl [Initial Patient Report]![Gender] = "Male"
End If
End Sub
As you guessed, I get all sorts of errors. Please help.
Thanks,
Dean