Hi
I'm trying to open a crosstab query from a form, using some of the form's current data as input criteria into the query.
When I run the crosstab query without criteria from the form, it works. When I manually type specific data into the criteria of the crosstab query, it works.
When I use references to the form's fields in the crosstab query it says, "field not recognised" or similar.
The crosstab query has a data source that is another query. If I try to run THIS one from the form, with criteria referenced back to data on the form, it works fine.
The form is "FRMClass" and on the "APP" button I am trying to open the crosstab query QRYPupilAchievement_Crosstab with data sourced from the form. The non-crosstab query that is the data source for the crosstab is called QRYPupilAchievement.
I have tried putting the referenced fields in the criteria boxes of both the normal query and the crosstab - they are currently residing in the non-crosstab, I think.
Is it just something peculiar to crosstabs? As an alternative, if I could get a form that displays the crosstab, I could use DoCmd.OpenForm with an stLinkCriteria. Can you get crosstabs displayed in a form?
Thanks