I am attempting to make a macro that will check data in a subform for a specific value.
The macro I have is:
Condition:
[Forms]![Personal Data Entry with Senate and House]![Category Link Subform1].[Form]![Category ID]="FRI"
Action:
MsgBox
Message - Data Found
Condition:
...
Action
StopMacro
Conditon:
Action
MsgBox
Message - Data Not found.
Ok. The macro works fine with one exception. The Category filed that is being searched may contain several records. I have encountered the following problem. If "Fri" is the only catagory that the person belongs to, the macro works fine. However, if the person belongs to several catagories, the statement returns as not true and I recieve the "data not found" message even if one of the catagories is "Fri." How can I eliminate this problem?
Thanks for any help you can give me.
The macro I have is:
Condition:
[Forms]![Personal Data Entry with Senate and House]![Category Link Subform1].[Form]![Category ID]="FRI"
Action:
MsgBox
Message - Data Found
Condition:
...
Action
StopMacro
Conditon:
Action
MsgBox
Message - Data Not found.
Ok. The macro works fine with one exception. The Category filed that is being searched may contain several records. I have encountered the following problem. If "Fri" is the only catagory that the person belongs to, the macro works fine. However, if the person belongs to several catagories, the statement returns as not true and I recieve the "data not found" message even if one of the catagories is "Fri." How can I eliminate this problem?
Thanks for any help you can give me.