Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crosstab paremeter query help

Status
Not open for further replies.

MadMax7

MIS
Feb 17, 2004
62
GB
Hope someone can help

i have the following code

PARAMETERS [Between [forms]![frmPreviewReports]![txtStartDate] And [forms]![frmPreviewReports]![txtEndDate]] DateTime;
TRANSFORM Count(qryClusterA.ClusterXfers) AS CountOfClusterXfers
SELECT qryClusterA.Interval, Count(qryClusterA.ClusterXfers) AS [Total Of ClusterXfers]
FROM qryClusterA
GROUP BY qryClusterA.Interval
PIVOT qryClusterA.BranchCode;

the problem i am having is when i try to run the crosstab query i am getting a error saying invalid bracketing of name '[Between [forms]![frmPreviewReports]![txtStartDate] And [forms]![frmPreviewReports]![txtEndDate]]'

i have tried removing the last ] but this has not worked
 
Syntax error in your PARAMETERS clause.
Try this instead:
PARAMETERS [forms]![frmPreviewReports]![txtStartDate] DateTime, [forms]![frmPreviewReports]![txtEndDate]] DateTime;


Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top