It's ugly, but here it is...thanks for the help.
PARAMETERS [Forms]![frmSalesGoalsParticipantsByRegion]!
[Region] Value;
TRANSFORM Sum(tblSalesGoals.SalesGoal) AS SumOfSalesGoal
SELECT tblSalesGoals.Division, tblSalesGoals.Region,
tblSalesGoals.Territory,
SalesEndoSqlUser_accounts.keyAccount,
tblSalesGoals.SAPNumber, tblSalesGoals.CustomerName, Sum
(tblSalesGoals.SalesGoal) AS TotalGoal
FROM (SalesEndoSqlUser_ProductCategories LEFT JOIN
tblSalesGoals ON
SalesEndoSqlUser_ProductCategories.ProductLevelCustom =
tblSalesGoals.Product) LEFT JOIN SalesEndoSqlUser_accounts
ON tblSalesGoals.SAPNumber =
SalesEndoSqlUser_accounts.account_id
WHERE (((SalesEndoSqlUser_accounts.keyAccount)=1) AND
((tblSalesGoals.Region)=[Forms]!
[frmSalesGoalsParticipantsByRegion]![Region]))
GROUP BY tblSalesGoals.Division, tblSalesGoals.Region,
tblSalesGoals.Territory,
SalesEndoSqlUser_accounts.keyAccount,
tblSalesGoals.SAPNumber, tblSalesGoals.CustomerName
ORDER BY tblSalesGoals.Division, tblSalesGoals.Region,
tblSalesGoals.Territory, tblSalesGoals.CustomerName,
SalesEndoSqlUser_ProductCategories.ProductLevelCustom
PIVOT
SalesEndoSqlUser_ProductCategories.ProductLevelCustom;
-----Original Message-----
Do you mind sharing your SQL view?
--
Duane Hookom
MS Access MVP
--
hmm, now i get a message that says the microsoft jet
database engine does not recognize " as a valid field name
or expression. The parameter I'm filtering on is [Region]=
[Forms]![frmSalesGoalsParticipantsByRegion]![Region] where
I put[Forms]![frmSalesGoalsParticipantsByRegion]! [Region]
in the parameters table and called it text. I then have a
column in my query for Region and the criteria is = [Forms]!
[frmSalesGoalsParticipantsByRegion]![Region]. Any
thoughts? Thanks!
-----Original Message-----
Open your crosstab in design view and menu select Query|Parameters and enter
your parameters and data types like:
Forms!frmDates!txtStart Date/Time
Forms!frmDates!txtEnd Date/Time
--
Duane Hookom
MS Access MVP
--
hi. i have a report that has a crosstab query as a source.
i was hoping to filter the report by form buy i'm getting
an error saying that i can't do so. is there a way to
filter crosstab queries by form? thanks!
.
.