D
diaare
Hello all,
In my inexperience and probably unconventional ways, I created a crosstab
query that has this SQL statement.
PARAMETERS [Which year?] Short;
TRANSFORM Sum(Production_chooseyear.QtyProduced) AS SumOfQtyProduced
SELECT Models.Horizontal, Models.Freezer, Models.NumberofDoors,
CoolerTypes.ProductionGroup, CoolerTypes.StyleID, Models.CoolerTypeID,
Production_chooseyear.ModelID, Production_chooseyear.LineID,
Styles.StyleType, Sum(Production_chooseyear.QtyProduced) AS [Total Of
QtyProduced]
FROM (Styles RIGHT JOIN (CoolerTypes RIGHT JOIN Models ON
CoolerTypes.CoolerTypeID = Models.CoolerTypeID) ON Styles.StyleID =
CoolerTypes.StyleID) RIGHT JOIN Production_chooseyear ON Models.ModelID =
Production_chooseyear.ModelID
WHERE (((Models.CoolerTypeID)<>9999 And (Models.CoolerTypeID)<>9999))
GROUP BY Models.Horizontal, Models.Freezer, Models.NumberofDoors,
CoolerTypes.ProductionGroup, CoolerTypes.StyleID, Models.CoolerTypeID,
Production_chooseyear.ModelID, Production_chooseyear.LineID, Styles.StyleType
PIVOT "Qtr " & Format([ProductionDate],"q");
Basically it is a Crosstab qry that sums production by Qtr, and has a
paramenter value that pops up so the user can pick which years data it should
include.
When I run this qry from the qry menu it seems to work correctly.
BUT, I have a report that was based on this qry before I added the
parameter value to select which year of data. I had no problems with it.
Now, when I try to run the report, or just view it in design view, I get the
parameter value dialog box over and over and over again. This prevents me
from making any changes in design veiw, or veiwing the report.
Is there a better way of going about this?
In my inexperience and probably unconventional ways, I created a crosstab
query that has this SQL statement.
PARAMETERS [Which year?] Short;
TRANSFORM Sum(Production_chooseyear.QtyProduced) AS SumOfQtyProduced
SELECT Models.Horizontal, Models.Freezer, Models.NumberofDoors,
CoolerTypes.ProductionGroup, CoolerTypes.StyleID, Models.CoolerTypeID,
Production_chooseyear.ModelID, Production_chooseyear.LineID,
Styles.StyleType, Sum(Production_chooseyear.QtyProduced) AS [Total Of
QtyProduced]
FROM (Styles RIGHT JOIN (CoolerTypes RIGHT JOIN Models ON
CoolerTypes.CoolerTypeID = Models.CoolerTypeID) ON Styles.StyleID =
CoolerTypes.StyleID) RIGHT JOIN Production_chooseyear ON Models.ModelID =
Production_chooseyear.ModelID
WHERE (((Models.CoolerTypeID)<>9999 And (Models.CoolerTypeID)<>9999))
GROUP BY Models.Horizontal, Models.Freezer, Models.NumberofDoors,
CoolerTypes.ProductionGroup, CoolerTypes.StyleID, Models.CoolerTypeID,
Production_chooseyear.ModelID, Production_chooseyear.LineID, Styles.StyleType
PIVOT "Qtr " & Format([ProductionDate],"q");
Basically it is a Crosstab qry that sums production by Qtr, and has a
paramenter value that pops up so the user can pick which years data it should
include.
When I run this qry from the qry menu it seems to work correctly.
BUT, I have a report that was based on this qry before I added the
parameter value to select which year of data. I had no problems with it.
Now, when I try to run the report, or just view it in design view, I get the
parameter value dialog box over and over and over again. This prevents me
from making any changes in design veiw, or veiwing the report.
Is there a better way of going about this?