@candide - please remember to accept the solution to the first question.
Regarding the second question, to combine this you can either use:
Search(
AddColumns(
Filter(
tblZSM,
Len(Scr12ComboboxFilterKapitel.Selected.Kapitelname) = 0 || lkpKapitel.Kapitelname = Scr12ComboboxFilterKapitel.Selected.Kapitelname
),
"_related_column",
kpSymptom.'the name of the field you want to return from the related table'
),
Scr12txtSearchSymptome.Value,
"_related_column"
)
Or:
With(
{
_prefiltered_data: Filter(
tblZSM,
Len(Scr12ComboboxFilterKapitel.Selected.Kapitelname) = 0 || lkpKapitel.Kapitelname = Scr12ComboboxFilterKapitel.Selected.Kapitelname
)
},
Search(
AddColumns(
_prefiltered_data,
"_related_column",
kpSymptom.'the name of the field you want to return from the related table'
),
Scr12txtSearchSymptome.Value,
"_related_column"
)
)