I have this union crosstab query that I would like to add selection critera based on a field from a form. However I get "The Microsoft Jet database engine does not recognize '[forms]![jobprocess].[job_id]' as valid field name or expression.
Any help would be appreciated.
Any help would be appreciated.
Code:
TRANSFORM Count(q_EquipmentLocationListUnion.EquipID) AS CountOfEquipID SELECT DateAdd("d",[startjobdate],[i]) AS DateInSvc, Sum(q_EquipmentLocationListUnion.Amps) AS SumOfAmps, Sum(q_EquipmentLocationListUnion.Rating) AS SumOfRating FROM Integers, q_EquipmentLocationListUnion WHERE (((Integers.i) Between 0 And DateDiff("d",[Startjobdate],[endjobdate])-1) AND ((q_EquipmentLocationListUnion.Job_ID)=[forms]![jobprocess].[job_id])) GROUP BY DateAdd("d",[startjobdate],[i]) ORDER BY DateAdd("d",[startjobdate],[i]) PIVOT q_EquipmentLocationListUnion.Type;