I have a parameter field ({?Training Code} that can accept multiple values like AA, E, FS, F1, Z. What I need to do is have the user selected parameters compared to a string database field {conthist.rectype}. The part I'm having problems with is the database field contains extra information. For example... "LC Survey done ;* AA, E, F1" What I'm searching against will always be after the ";*" part of the database field. So if a search is done for AA, E, and Z then this example record would be excluded but if a search was done for AA and E the record would be selected. Below is what I have for a formuala
numbervar i;
numbervar j:= ubound({?Training Code});
stringvar x;
for i:=1 to j do
(
if {?Training Code} in {conthist.rectype} then
x:= x + {conthist.rectype}+","
);
{conthist.rectype} in x
numbervar i;
numbervar j:= ubound({?Training Code});
stringvar x;
for i:=1 to j do
(
if {?Training Code} in {conthist.rectype} then
x:= x + {conthist.rectype}+","
);
{conthist.rectype} in x