Hi,
I have a table called T_Batch which stores batch information as follow:
T_Batch
LotID
ProductName
Type
DateMfg
From this table I have created one query Q_Area which calculate the area in which the product is manufactured (one product is manufactured in one area 1 while others are manufactured in area2).
Q_Area
LotID (from T_Batch)
Area (calculated)
A second query, Q_Prod, is based on both T_Batch and Q_Area and contains:
Q_Prod
LotID (from T_Batch)
Type (from T_Batch)
Area (from Q_Area)
DateMfg (from T_Batch)
DateMfgWeek (calculated from DateMfg with Format([DateMfg],"ww"))
DateMfgMonth (calculated from DateMfg with Format([DateMfg],"mm"))
DateMfgYear (calculated from DateMfg with Format([DateMfg],"yyyy"))
Now obviously I want to create a PivotChart on Q_Prod to count the nb of manufactured batches per year/month or week depending on the Type and the Area. Sounds pretty simple but Q_Prod contains 13247 rows and the PivotChart takes age to get displayed. So I figure there is something wrong in my design.
Q_Prod query itself is pretty fast to get displayed but the PivotChart or PivotTable based on it are slow to appear. Of course I can restrict Q_Prod by using parameters (like retrieving records only in 2008...) but then how can I display the total nb of batches per year?? The only parameter I could select would be the type but it doesn't help a lot because 80% of records are of type1 so it's still too slow.
What am I doing wrong here? Is there anyway to speed up the PivotChart display yet still retrieve all the records? Is 13000 rows too much for Access? (I moved from Excel to Access expressively to "solve" that kind of issues...)
Thanks
I have a table called T_Batch which stores batch information as follow:
T_Batch
LotID
ProductName
Type
DateMfg
From this table I have created one query Q_Area which calculate the area in which the product is manufactured (one product is manufactured in one area 1 while others are manufactured in area2).
Q_Area
LotID (from T_Batch)
Area (calculated)
A second query, Q_Prod, is based on both T_Batch and Q_Area and contains:
Q_Prod
LotID (from T_Batch)
Type (from T_Batch)
Area (from Q_Area)
DateMfg (from T_Batch)
DateMfgWeek (calculated from DateMfg with Format([DateMfg],"ww"))
DateMfgMonth (calculated from DateMfg with Format([DateMfg],"mm"))
DateMfgYear (calculated from DateMfg with Format([DateMfg],"yyyy"))
Now obviously I want to create a PivotChart on Q_Prod to count the nb of manufactured batches per year/month or week depending on the Type and the Area. Sounds pretty simple but Q_Prod contains 13247 rows and the PivotChart takes age to get displayed. So I figure there is something wrong in my design.
Q_Prod query itself is pretty fast to get displayed but the PivotChart or PivotTable based on it are slow to appear. Of course I can restrict Q_Prod by using parameters (like retrieving records only in 2008...) but then how can I display the total nb of batches per year?? The only parameter I could select would be the type but it doesn't help a lot because 80% of records are of type1 so it's still too slow.
What am I doing wrong here? Is there anyway to speed up the PivotChart display yet still retrieve all the records? Is 13000 rows too much for Access? (I moved from Excel to Access expressively to "solve" that kind of issues...)
Thanks