K
Kelly
Does anyone know how I can resovle this problem. I created a crosstab query
to provide totals to each mark number. The CableCalcQry query calculates the
MarkCalc expression based on number of conductors multiplied by the length of
cable. The MarkListing is that sum of based on each mark number. The report
needs to be based on which revision totals. The report is fine if I use
current data to build the report. If I add an additional revision it does not
show. How can I programmatically add additional revisions to the report and
only have the revision I need for the totals. Below is the cross tab query.
TRANSFORM Sum(CableCalcQry.MarkCalc) AS MarkListing
SELECT Cables.MarkNum, Cables.CableDescrip, Cables.CommodNum
FROM (Cables INNER JOIN CircuitsData ON Cables.CableID =
CircuitsData.DescripID) INNER JOIN CableCalcQry ON CircuitsData.CircID =
CableCalcQry.CircID
GROUP BY Cables.MarkNum, Cables.CableDescrip, Cables.CommodNum
PIVOT CableCalcQry.CircRevisionNum;
I also tried adding a parameter to the cross tab query that did not work in
the report but worked when I ran the query. Confused....
PARAMETERS [Which Revision] IEEEDouble, [CableCalcQry].[CircRevisionNum]
IEEEDouble;
Is there a better way to get the results.
Kelly
to provide totals to each mark number. The CableCalcQry query calculates the
MarkCalc expression based on number of conductors multiplied by the length of
cable. The MarkListing is that sum of based on each mark number. The report
needs to be based on which revision totals. The report is fine if I use
current data to build the report. If I add an additional revision it does not
show. How can I programmatically add additional revisions to the report and
only have the revision I need for the totals. Below is the cross tab query.
TRANSFORM Sum(CableCalcQry.MarkCalc) AS MarkListing
SELECT Cables.MarkNum, Cables.CableDescrip, Cables.CommodNum
FROM (Cables INNER JOIN CircuitsData ON Cables.CableID =
CircuitsData.DescripID) INNER JOIN CableCalcQry ON CircuitsData.CircID =
CableCalcQry.CircID
GROUP BY Cables.MarkNum, Cables.CableDescrip, Cables.CommodNum
PIVOT CableCalcQry.CircRevisionNum;
I also tried adding a parameter to the cross tab query that did not work in
the report but worked when I ran the query. Confused....
PARAMETERS [Which Revision] IEEEDouble, [CableCalcQry].[CircRevisionNum]
IEEEDouble;
Is there a better way to get the results.
Kelly