M
Miranda
hi,
i'm working on a report at the moment. I'm using the following query for a
subreports control source:
SELECT getDatePeriod.theDate, A.EquipType, A.numberUsed, A.dateUsed,
A.sheetNumber, A.jobDesc, A.siteorig, A.purchaseOrderNum, (SELECT TOP 1
equipment.cost FROM equipment WHERE (((equipment.Equipment)=A.EquipType) AND
((A.dateUsed)>=[equipment].[dateEffective])) ORDER BY
equipment.DateEffective DESC) AS Expr1, (Expr1*A.numberUsed) AS Expr2
FROM getDatePeriod INNER JOIN A ON getDatePeriod.theDate=A.dateUsed;
everything works fine until I add a calculated control - Sum(expr2). I then
get an error saying microsoft access has experienced an error and must shut
down. i've tried using this control on a number of reports and it always
crashes. When the backup is opened, the data has been lost
does anyone know why this would be happening?
thanks, miranda
i'm working on a report at the moment. I'm using the following query for a
subreports control source:
SELECT getDatePeriod.theDate, A.EquipType, A.numberUsed, A.dateUsed,
A.sheetNumber, A.jobDesc, A.siteorig, A.purchaseOrderNum, (SELECT TOP 1
equipment.cost FROM equipment WHERE (((equipment.Equipment)=A.EquipType) AND
((A.dateUsed)>=[equipment].[dateEffective])) ORDER BY
equipment.DateEffective DESC) AS Expr1, (Expr1*A.numberUsed) AS Expr2
FROM getDatePeriod INNER JOIN A ON getDatePeriod.theDate=A.dateUsed;
everything works fine until I add a calculated control - Sum(expr2). I then
get an error saying microsoft access has experienced an error and must shut
down. i've tried using this control on a number of reports and it always
crashes. When the backup is opened, the data has been lost
does anyone know why this would be happening?
thanks, miranda