I've copied the SQLMasterDetail.mrt that works with MSACCESS to run it with SQL Server.
But when I preview the report I get the error: scalar variable "@CategoryID" must be declared.
Master query datasource 'Categories' is:
Code: Select all
SELECT * FROM Categories
Code: Select all
SELECT * FROM [Products] where CategoryID = @CategoryID
Code: Select all
@CategoryID int
Any idea on how the master - detail link with parameter should be made to work with SQL Server?
Thank's for help.
Olivier