I have experience Access putting in invalid bracketing on its own. Modify
your SQL manually to:
PARAMETERS [Forms]!frmM_MetricsSearch![List1] Text ( 255 ),
[Forms]!frmM_MetricsSearch![DateFrom] DateTime,
[Forms]!frmM_MetricsSearch![DateTo] DateTime;
TRANSFORM Count(tblS_Leads.ID) AS CountOfID
SELECT tblS_Leads.[Neterion Owner], Count(tblS_Leads.ID) AS [Total Of ID]
FROM tblS_Leads LEFT JOIN tblS_CallResults ON tblS_Leads.ID =
tblS_CallResults.OriginID
GROUP BY tblS_Leads.[Neterion Owner]
PIVOT tblS_Leads.[Lead Quality];
Keep in mind that this query is not being filtered by the parameters. I
you
want to filter based on the parameters, they must be in the Where clause
of
this or a source query.
--
Duane Hookom
MS Access MVP
--
Bernie said:
The error message is "Invalid bracketing of
[=[Forms]!frmM_MetricsSearch![List1]]". I notice brackets are inserted
that
I don't type in the parameters.
The SQL View is:
PARAMETERS [=[Forms]!frmM_MetricsSearch![List1]] Text ( 255 ),
[[>=Forms]!frmM_MetricsSearch![DateFrom And
<=Forms]!frmM_MetricsSearch![DateTo]] DateTime;
TRANSFORM Count(tblS_Leads.ID) AS CountOfID
SELECT tblS_Leads.[Neterion Owner], Count(tblS_Leads.ID) AS [Total Of
ID]
FROM tblS_Leads LEFT JOIN tblS_CallResults ON tblS_Leads.ID =
tblS_CallResults.OriginID
GROUP BY tblS_Leads.[Neterion Owner]
PIVOT tblS_Leads.[Lead Quality];
:
You didn't state what your error message is or provide the SQL view of
your
query.
Crosstab queries require you to specify the data types of all
parameters.
Select Query->Parameters and enter you parameter expessions and select
the
data types.
--
Duane Hookom
MS Access MVP
--
I have a form that the users select a project name and enter a date
to
and
from. I would like to run a cross-tab query that selects the
records
that
equal the project name and >= date from and <= date to.
I can't seem to get this criteria entered correctly in the
parameters.
Any
help would be greatly appreciated.
Thanks!