We created a cross tab query that provides the expected results. However, when we use the query as the data source in a report it asks for parameter value for tblOther.dtmInvoice. I can’t see the forest for the trees now. The following is the SQL from the query. As stated, the query alone works fine, with no prompts. It is only when running the report that uses the query that OFI’s occur.
TRANSFORM Count(tblOther.pk_Invoice) AS [The Value]
SELECT tblOther.I_strLocation, Count(tblOther.pk_Invoice) AS [Total Of pk_Invoice]
FROM tblOther
WHERE (((Year([tblOther]![I_dtmInvoice]))=[Forms]![frm_IReports]![txtYTDYear]))
GROUP BY tblOther.I_strLocation
ORDER BY tblOther.I_strLocation
PIVOT Format([I_dtmInvoice],”mmm”) In (“Jan”,”Feb”,”Mar”,”Apr”,”May”,”Jun”,”Jul”,”Aug”,”Sep”,”Oct”,”Nov”,”Dec”);
Any idea?
TIA,
Ken