parameters (for instance @enddate). You have to use unnamed parameters. Each
place you put a parameter below put a question mark. RS will automatically
create report parameters for you. I typically rename them (in layout go to
menu Report-> Report Parameter ... or something like that). Rename them.
Then go back to the dataset and click on the ... and go to the parameters
tab and remap them. Note that this list is positional so you need to keep
"ana9" <u28955@uwe> wrote in message news:6b7d852d92f62@uwe...
>I have the following query in an access database that works just fine:
>
> SELECT [SALES ORDER].ACCOUNTMANAGER, [SALES ORDER].ORDERAMOUNT, Sum([SALES
> ORDER]![PRODREVENUE]+[SALES ORDER]![SVCREVENUE]+[SALES ORDER]![TRREVENUE])
> AS
> TTLREV, Sum([SALES ORDER]![PRODMARGIN]+[SALES ORDER]![SVCMARGIN]+[SALES
> ORDER]
> ![TRMARGIN]) AS TTLMARG, [SALES ORDER].[SO#]
> FROM [SALES ORDER]
> GROUP BY [SALES ORDER].ACCOUNTMANAGER, [SALES ORDER].ORDERAMOUNT, [SALES
> ORDER].[SO#], [SALES ORDER].ACCOUNTMANAGER, [SALES ORDER].DATE
> HAVING ((([SALES ORDER].DATE) Between [Forms]![REPORTS MENU]![Report Start
> Date] And [Forms]![REPORTS MENU]![Report End Date]))
> ORDER BY [SALES ORDER].ACCOUNTMANAGER;
>
> I need to port this over to reporting services however, if I create two
> parameters for the [Report Start Date] and [Report End Date] called
> @startdate and @enddate reporting services cannot parse the query text. I
> can't keep the original parameters because there is no form for the user
> to
> fill out. Is there any way to refer to parameters that I create in the
> report?
>
> I am trying to do something like
> WHERE ([DATE] BETWEEN @startdate AND @enddate)
>
> --
> Message posted via SQLMonster.com
>
http://www.sqlmonster.com/Uwe/Forums.aspx/sql-server-reporting/200612/1
>