A
AlCamp
Hello folks,
I've developed a "dynamic" crosstab report (using the method from
Sample97.mdb) where Products vs
ProductionDefects. I have a table with 30 distinct defects with DefectIDs
numbered from 1 to 30.
I want to see all my DefectIDs across the top of the report (crosstab
Columns)
However, the Products reported on within a date range, do not always
contain values for ALL the available DefectIDs. (Ex. No Product in this
recordset has DefectID 19 or 24)... so my dynamic columns headings "skip"
those numbers.
Using the Defects table, I was able to rework the crosstab query to
"force" the columns to display ALL 30 DefectIDs.
But... this makes the first printed horizontal line blank.
The Product (text) is blank, and all the defect columns values (num) are
blank. (probably really Null)
If I try to get rid of the blank line via my crosstab query... (Product
criteria = IsNotNull), I drop the blank line Product, but I lose my 19 and
24 DefectID columns again.
Is there some way, from the Report aspect (Ex. on Detail Format or Detail
Print) that I can supress that first Null line?
Perhaps based on this code I already have, I could eliminate that first
record...
Set dbsReport = CurrentDb
Set qdf = dbsReport.QueryDefs("qryInspectionDefectsSummary")
Set rstReport = qdf.OpenRecordset()
Hope I gave enough info... any help would be appreciated.
Thanks,
Al Camp
I've developed a "dynamic" crosstab report (using the method from
Sample97.mdb) where Products vs
ProductionDefects. I have a table with 30 distinct defects with DefectIDs
numbered from 1 to 30.
I want to see all my DefectIDs across the top of the report (crosstab
Columns)
However, the Products reported on within a date range, do not always
contain values for ALL the available DefectIDs. (Ex. No Product in this
recordset has DefectID 19 or 24)... so my dynamic columns headings "skip"
those numbers.
Using the Defects table, I was able to rework the crosstab query to
"force" the columns to display ALL 30 DefectIDs.
But... this makes the first printed horizontal line blank.
The Product (text) is blank, and all the defect columns values (num) are
blank. (probably really Null)
If I try to get rid of the blank line via my crosstab query... (Product
criteria = IsNotNull), I drop the blank line Product, but I lose my 19 and
24 DefectID columns again.
Is there some way, from the Report aspect (Ex. on Detail Format or Detail
Print) that I can supress that first Null line?
Perhaps based on this code I already have, I could eliminate that first
record...
Set dbsReport = CurrentDb
Set qdf = dbsReport.QueryDefs("qryInspectionDefectsSummary")
Set rstReport = qdf.OpenRecordset()
Hope I gave enough info... any help would be appreciated.
Thanks,
Al Camp