@id =Parameters!DepartmentID.Value
My query is as follows and would work perfectly well if connecting to a SQL
database:
SELECT dpt_id AS DeptID, Line, price, SKU, StockCode
FROM vw_str_line_subreport
WHERE (dpt_id = @id)
ORDER BY Line, SKU
If I execute the query while on the 'Data' tab I get the desired results.
However, when I change back to the Layout or Preview tabs I get teh
following error:
"The data extension OLE DB does not support named parameters"
"Use unnamed parameters instead"
If anyone can advise me how to overcome this hurdle it would be a big help.
Thanks in advance.
Simon
SELECT dpt_id AS DeptID, Line, price, SKU, StockCode FROM
vw_str_line_subreport WHERE (dpt_id = ?) ORDER BY Line, SKU
Bruce L-C
"Simon Dingley" <newsg...@nospam-creativenrg.co.uk> wrote in message
news:e8x9dfMa...@tk2msftngp13.phx.gbl...
Thanks for your help.
Simon
"Bruce Loehle-Conger" <bruce_l...@hotmail.com> wrote in message
news:u3VqDJOa...@TK2MSFTNGP10.phx.gbl...
Bruce L-C
"Simon Dingley" <newsg...@nospam-creativenrg.co.uk> wrote in message
news:%2394TkjO...@tk2msftngp13.phx.gbl...
Thanks
sherry
"Bruce Loehle-Conger" <bruce_l...@hotmail.com> wrote in message news:<#qqaXyOa...@TK2MSFTNGP12.phx.gbl>...
Do the following:
1. Add a new report parameter with the name you want (or you can change one
of the ones you have there). Delete all the other report parameters. Go to
the data tab and click on the ..., go to the parameters tab. Now for each of
the query parameters map it to the single report parameter.
2. Repeat for each dataset.
Report parameters can be used in multiple places. I do the above all the
time.
Bruce L-C
"Sherry" <sherry...@mitretek.org> wrote in message
news:130ca5fa.04072...@posting.google.com...