Jeff Boyce said:
Are you saying that EVERY time you work with QUERY X it blows up?
Yes. In fact, right before I read your post I opened it in design mode and
didn't do ANYTHING to it except move/re-size the tables and queries. I saved
it and looked at my db size. It popped by 2MB!
Any chance you'd be willing to kill QUERY X, compact/repair, then re-create
QUERY X? (sometimes Access gets subtly corrupted and it just seems to work
better to throw out what breaks and start over...)
I never considered that but it might be worth the effort. Here's its SQL
just for your info:
SELECT tblPKProfilesAssociations.ProfilesAssociations AS PKWTID,
tblProfiles_1.Version AS PKWTV, tblProfiles_1.Description AS PKWTDesc,
tblProfiles_1.OriginDate AS PKWTOrDate, tblProfiles_1.Activity AS PKWTAct,
tblProfiles_1.ApprovedDate AS PKWTAppDate, tblProfiles_1.ActiveDate AS
PKWTActDate, tblProfiles_1.InactiveDate AS PKWTInDate, tblProfiles_1.Comments
AS PKWTCom, tblProfiles_1.Type AS PKWTCalcType,
tblFGPhysicalAttributes.txtProfileID, tblProfiles.Version,
tblProfiles.Description, tblProfiles.Status, tblProfiles.OriginDate,
tblProfiles.Activity, tblProfiles.Comments, tblFGPhysicalAttributes.Brand,
Trim([Claim] & " " & [FlavorStyle] & " " & [Category]) AS FGDesc,
tblFGPhysicalAttributes.UnitDescription, qryProfilesGroupsFG.GroupDesc,
tblFGPhysicalAttributes.ShippedIn, tblFGPhysicalAttributes.UnitCount,
tblFGPhysicalAttributes.SubUnitCount, tblFGPhysicalAttributes.UnitSize,
tblFGPhysicalAttributes.UnitUOM,
IIf([UnitUOM]="Ct.",+Nz([UnitCount],1)*Nz([SubUnitCount],1)*[UnitSize],Null)
AS UnitSizeCt,
IIf([UnitUOM]="Ct.",Null,+IIf([SubUnitCount],[SubUnitCount]*[UnitSize],[UnitSize]))
AS UnitSizeCtc, Nz([UnitSizeCt],[UnitSizeCtc]) AS UnitSizec,
IIf([UnitUOM]="Ct.",[UnitSizec],[UnitCount]) AS UnitCountc,
qryFGsINGsDensAllergens.LabDensitylbgal,
qryFGsINGsDensAllergens.CalcDensitylbgal,
IIf(IsNull([CalcDensitylbgal]),[LabDensitylbgal],[CalcDensitylbgal]) AS
DensityNz, qryPKProfilesAssociationsPKWTsFGs.SumOfSumOfSUBUNPRODWtlb AS
SUBUNPRODWt, qryPKProfilesAssociationsPKWTsFGs.SumOfSumOfSUBUNPRODWtlbTotal
AS SUBUNPRODWtTotal, qryPKProfilesAssociationsPKWTsFGs.SumOfSumOfUNPRODWtlb
AS PRODWt, qryPKProfilesAssociationsPKWTsFGs.SumOfSumOfUNPPRODWtlbTotal AS
PRODWtTotal, qryPKProfilesAssociationsPKWTsFGs.SumOfSumOfSUBUNPKWtlbTotal AS
SUBUNPKWtTotal, qryPKProfilesAssociationsPKWTsFGs.SumOfSumOfUNPKWtlb AS
UNPKWt, qryPKProfilesAssociationsPKWTsFGs.SumOfSumOfUNPKWtlbTotal AS
UNPKWtTotal, Round([UnitSizec]*[lbConvFactor],6) AS UNNtWtConvlb,
Round([UnitSizec]*[galConvFactor],6) AS UNNtWtConvgal,
IIf(IsNull([SubUnitCount]),[UnitCount]*[PRODWt],[UnitCount]*[SUBUNPRODWtTotal])
AS UNPRODNtWt, Round(Nz([UNNtWtConvlb],[UNNtWtConvgal]*[DensityNz]),6) AS
UNNtWt, IIf([UOMType]="WT",Round([UNNtWt]*0.025+[UNNtWt],6)) AS UNEstNtWtw,
IIf([UOMType]="VOL",Round([UNNtWt],6)) AS UNEstNtWtv,
Round(Nz([UNEstNtWtw],[UNEstNtWtv]),6) AS UNEstNtWt,
IIf(Nz([SUBUNPKWtTotal],0)<>0,Round(Nz([UNEstNtWtw],[UNEstNtWtv])+[SUBUNPKWtTotal],6),Round(Nz([UNEstNtWtw],[UNEstNtWtv])+[SumOfSumOfUNPKWtlb],6))
AS UNEstGrWt, [UNEstGrWt]-[UNEstNtWt] AS UNPKNtWt, [UNPKNtWt]/[UNEstGrWt] AS
UNPKpercent, [UnitLoadLength]*[tblUOMLength].[inConvFactor] AS ULLinConv,
[UnitLoadWidth]*[tblUOMLength_1].[inConvFactor] AS ULWinConv,
[UnitLoadHeight]*[tblUOMLength_2].[inConvFactor] AS ULHinConv,
IIf([ULLinConv]>=48,[ULLinConv],[PTL]) AS ULL,
IIf([ULWinConv]>=40,[ULWinConv],[PTW]) AS ULW, [ULHinConv]*[ULL]*[ULW] AS
ULcuin, [ULcuin]/1728 AS ULcuft, qryPKWTCalcsPTDims.PTL,
qryPKWTCalcsPTDims.PTW, qryPKWTCalcsPTDims.PTH,
qryPKProfilesAssociationsPKWTsFGs.SumOfSumOfCSPKWtlb,
qryPKProfilesAssociationsPKWTsFGs.SumOfSumOfCSPKWtlbTotal,
qryPKProfilesAssociationsPKWTsFGs.SumOfSumOfPTPKWtlb,
qryPKProfilesAssociationsPKWTsFGs.SumOfSumOfPTPKWtlbTotal,
tblFGPhysicalAttributes.UnitLoadStack, tblFGPhysicalAttributes.Ti,
tblFGPhysicalAttributes.Hi, tblProfilesStorage.StorageTime,
tblProfilesStorage.STIMEUOM, tblProfilesStorage.StorageCondition,
tblFGPhysicalAttributes.AdditionalUnits,
qryFGsINGsDensAllergens.ProfilesAssociations AS FAING,
qryFGProcessingDrumNumbers.Drums, qryFGsINGsDensAllergens.Allergens
FROM ((((((((((((tblFGPhysicalAttributes INNER JOIN tblUOMLength ON
tblFGPhysicalAttributes.ULLUOM = tblUOMLength.txtUOMLength) INNER JOIN
tblUOMLength AS tblUOMLength_1 ON tblFGPhysicalAttributes.ULWUOM =
tblUOMLength_1.txtUOMLength) INNER JOIN tblUOMLength AS tblUOMLength_2 ON
tblFGPhysicalAttributes.ULHUOM = tblUOMLength_2.txtUOMLength) INNER JOIN
qryPKWTCalcsPTDims ON tblFGPhysicalAttributes.txtProfileID =
qryPKWTCalcsPTDims.txtProfileID) LEFT JOIN qryPKProfilesAssociationsPKWTsFGs
ON tblFGPhysicalAttributes.txtProfileID =
qryPKProfilesAssociationsPKWTsFGs.txtProfileID) LEFT JOIN
qryFGsINGsDensAllergens ON tblFGPhysicalAttributes.txtProfileID =
qryFGsINGsDensAllergens.txtProfileID) LEFT JOIN tblUOMVolumeLiquidMass ON
tblFGPhysicalAttributes.UnitUOM = tblUOMVolumeLiquidMass.txtUOMVolumeLiquid)
LEFT JOIN qryProfilesGroupsFG ON tblFGPhysicalAttributes.txtProfileID =
qryProfilesGroupsFG.txtProfileID) INNER JOIN tblProfiles ON
tblFGPhysicalAttributes.txtProfileID = tblProfiles.txtProfileID) LEFT JOIN
qryFGProcessingDrumNumbers ON tblFGPhysicalAttributes.txtProfileID =
qryFGProcessingDrumNumbers.txtProfileID) LEFT JOIN tblProfilesStorage ON
tblFGPhysicalAttributes.txtProfileID = tblProfilesStorage.txtProfileID) INNER
JOIN tblPKProfilesAssociations ON tblFGPhysicalAttributes.txtProfileID =
tblPKProfilesAssociations.txtProfileID) INNER JOIN tblProfiles AS
tblProfiles_1 ON tblPKProfilesAssociations.ProfilesAssociations =
tblProfiles_1.txtProfileID
WHERE (((tblProfiles_1.Type)="PKCALC"));
JOPO (just one person's opinion)
Opinions are why I post here!
Thanks, Jeff!