Glad you found the problem.
Just as a head's up ... I recently found a bug in VFP related to Print When and multiple detail bands. If you try to use a Print When expression in a detail band which references the parent table, it doesn't work right. What is happening behind the scenes is that at the time the Print When logic is evaluated .. the parent table is temporarily on the NEXT record so it's evaluating the wrong record. The workaround is to create a report variable that is set to that ParentTable.FieldName and use it in the Print When instead of the direct field.
>Hello Cathy
>The Target Alias in detail 1 band and detail 2 band or OK !
>Detail 1: "legende"
>Detail 2: "listwahl"
>But i found a solution:
>The detail 1 records had a print when condition from cursor listwahl!????
>if listwahl.showlegend = 1
>In all records from listwahl showlegend was 1
>I put the showlegend column into cursor legende and changed the print when to
>if legende.showlegend = 1
>Now everything works as expected!
>Nevertheless:
>Thank you for your efforts
>
>Best regards
>Albert