U
uroron via AccessMonster.com
I am using Access 2007
I have a Main form and a subform.
The main form has 10 text boxes where allergies can be entered. all1, all2
to all10.
The subform has 9 text boxes where medicines can be entered. med1, med2,
to med9
I want a msgbox to alert one if one enters a medicine that a person is
allergic to.
I have tried without success codes similar to:
If Forms![Main].[all1] or [all2] or [all3-9] = Me.[med1] or [med2] or [med3-9]
Then
Msgbox = "Caution"
End If
Select Case doesn't seem to help.
Thank you in advance
Ron
I have a Main form and a subform.
The main form has 10 text boxes where allergies can be entered. all1, all2
to all10.
The subform has 9 text boxes where medicines can be entered. med1, med2,
to med9
I want a msgbox to alert one if one enters a medicine that a person is
allergic to.
I have tried without success codes similar to:
If Forms![Main].[all1] or [all2] or [all3-9] = Me.[med1] or [med2] or [med3-9]
Then
Msgbox = "Caution"
End If
Select Case doesn't seem to help.
Thank you in advance
Ron