B
Brady
I have a cross tab query with a where clause. I want the where clause to get
it's value from an open form using the syntax.
[Forms]![Client]![SolutionSelection]
This works just fine with a non cross tab query. However the same
expression does not work with a cross tab.
Any thoughts as to why and if there is a workaround?
Crosstab Query
PARAMETERS tst Short;
TRANSFORM Max(PropertyValue.property_value) AS MaxOfproperty_value
SELECT Specification.spec_id, Specification.spec_name
FROM Specification INNER JOIN ((Property INNER JOIN PropertyValue ON
Property.prop_id = PropertyValue.property_id) INNER JOIN (PropertyGroup INNER
JOIN PropGrpRel ON PropertyGroup.propgroup_id = PropGrpRel.propgroup_id) ON
Property.prop_id = PropGrpRel.prop_id) ON Specification.spec_id =
PropertyValue.object_id
WHERE (((Specification.spec_type_id)=24) AND
((Specification.spec_owning_id)=[Forms]![Client]![SolutionSelection]))
GROUP BY Specification.spec_id, Specification.spec_name
PIVOT Property.prop_name;
Non Cross tab query
SELECT Specification.*, Specification.spec_owning_id
FROM Specification
WHERE (((Specification.spec_owning_id)=[Forms]![Client]![SolutionSelection]));
it's value from an open form using the syntax.
[Forms]![Client]![SolutionSelection]
This works just fine with a non cross tab query. However the same
expression does not work with a cross tab.
Any thoughts as to why and if there is a workaround?
Crosstab Query
PARAMETERS tst Short;
TRANSFORM Max(PropertyValue.property_value) AS MaxOfproperty_value
SELECT Specification.spec_id, Specification.spec_name
FROM Specification INNER JOIN ((Property INNER JOIN PropertyValue ON
Property.prop_id = PropertyValue.property_id) INNER JOIN (PropertyGroup INNER
JOIN PropGrpRel ON PropertyGroup.propgroup_id = PropGrpRel.propgroup_id) ON
Property.prop_id = PropGrpRel.prop_id) ON Specification.spec_id =
PropertyValue.object_id
WHERE (((Specification.spec_type_id)=24) AND
((Specification.spec_owning_id)=[Forms]![Client]![SolutionSelection]))
GROUP BY Specification.spec_id, Specification.spec_name
PIVOT Property.prop_name;
Non Cross tab query
SELECT Specification.*, Specification.spec_owning_id
FROM Specification
WHERE (((Specification.spec_owning_id)=[Forms]![Client]![SolutionSelection]));