master-detail (detail dies)
Hi,
I have a master-detail report using dbx components built into the designer and am coordinating them using parameters. Everything works fine until the report hits a detail for which there are not records. Every master that follows the offending one returns no detail. I have print if detail empty turned on.
master table
Field1
A
B
C
D
E
detail table
field1 field2
A dtail1
A dtail2
B dtail3
D dtail4
E dtail5
Report
A
dtail1
dtail2
B
dtail3
C
D
E
If i alter the master query to include AND FIELD1<>'C' then I get
A
dtail1
dtail2
B
dtail3
D
dtail4
E
dtail5
Its as if when the detail fails, the query becomes disfunctional.
Any ideas?
I have a master-detail report using dbx components built into the designer and am coordinating them using parameters. Everything works fine until the report hits a detail for which there are not records. Every master that follows the offending one returns no detail. I have print if detail empty turned on.
master table
Field1
A
B
C
D
E
detail table
field1 field2
A dtail1
A dtail2
B dtail3
D dtail4
E dtail5
Report
A
dtail1
dtail2
B
dtail3
C
D
E
If i alter the master query to include AND FIELD1<>'C' then I get
A
dtail1
dtail2
B
dtail3
D
dtail4
E
dtail5
Its as if when the detail fails, the query becomes disfunctional.
Any ideas?
Comments
i expect this may be your problem.
If i alter the master query to include AND FIELD1<>'C'
this wil now return only records where field 1 is not c
you may want to use a where clause
regards
in running the report it would be probably cause a problem if you alter the query of the masterdetail band
master query
SELECT field1 from master_table
DETAIL query
SELECT dtail from detail_table where field1=:param1
I may well have missed it
but check your querys on the dialog form
is the datasource property of the detail query set to query1 and the paramater property set with masterdata option.
regards
gord