P
PsyberFox
Hi,
I have the following three subs (amongst others):
Private Sub Form_Current()
If Trim(Title.Value) = "Other" Then
TitleOther.Enabled = True
TitleOther.SetFocus
Else
TitleOther.Enabled = False
End If
If MedicalAid = "OTHER" Then
MedicalAidOther.Enabled = True
MedicalAidOther.SetFocus
Else
MedicalAidOther.Enabled = False
End If
End Sub
Private Sub Title_AfterUpdate()
If Trim(Title.Value) = "Other" Then
TitleOther.Enabled = True
TitleOther.SetFocus
Else
TitleOther.Enabled = False
PatientName.SetFocus
End If
End Sub
Private Sub MedicalAid_AfterUpdate()
If MedicalAid = "OTHER" Then
MedicalAidOther.Enabled = True
MedicalAidOther.SetFocus
Else
MedicalAidOther.Enabled = False
MedicalAidNumber.SetFocus
End If
End Sub
The Title one works perfectly as it should, i.e. enabling the Title-Other
field if "Other" is selected - this list is contained in a value list in the
tblPatient table; however the MedicalAid one is not working - it gets its
values from another table called tblMedicalAid where btw the description is
OTHER (caps). Am I missing something here?
Thank you for any help!
I have the following three subs (amongst others):
Private Sub Form_Current()
If Trim(Title.Value) = "Other" Then
TitleOther.Enabled = True
TitleOther.SetFocus
Else
TitleOther.Enabled = False
End If
If MedicalAid = "OTHER" Then
MedicalAidOther.Enabled = True
MedicalAidOther.SetFocus
Else
MedicalAidOther.Enabled = False
End If
End Sub
Private Sub Title_AfterUpdate()
If Trim(Title.Value) = "Other" Then
TitleOther.Enabled = True
TitleOther.SetFocus
Else
TitleOther.Enabled = False
PatientName.SetFocus
End If
End Sub
Private Sub MedicalAid_AfterUpdate()
If MedicalAid = "OTHER" Then
MedicalAidOther.Enabled = True
MedicalAidOther.SetFocus
Else
MedicalAidOther.Enabled = False
MedicalAidNumber.SetFocus
End If
End Sub
The Title one works perfectly as it should, i.e. enabling the Title-Other
field if "Other" is selected - this list is contained in a value list in the
tblPatient table; however the MedicalAid one is not working - it gets its
values from another table called tblMedicalAid where btw the description is
OTHER (caps). Am I missing something here?
Thank you for any help!