So geht der Case auch nicht!

and CASE
when :bth01 <> ' '
or :bth02 <> ' '
or :bth03 <> ' '
or :bth04 <> ' '
or :bth05 <> ' '
or :bth06 <> ' '
or :bth07 <> ' '
or :bth08 <> ' '
or :bth09 <> ' '
or :bth10 <> ' '
then case when TABFLD in (:bth01, :bth02, :bth03,
:bth04, :bth05, :bth06,
:bth07, :bth08, :bth09,
:bth10) then 1 else 0 end
else 1
end = 1