I have a subreport that will search a table pulling all matches depending on two things. 1.) Some filtering criteria in the command for the subreport and 2.)it will search based on the criteria pulled by a parameter from the main report.
1.) Is this possible? I have tried for a few days now to get this to work but I feel I am missing something. I cannot get the field in the main report to pass the information to the parameter for the command in the subreport.
Here is the command for the subreport.....
DECLARE @DIE VARCHAR (20)
SET @DIE = '1315240018'
SELECT DISTINCT BCKUPDIE.TOOL1
FROM FS11HD AS BCKUPDIE
JOIN FS11HD AS ORGDIE
ON
BCKUPDIE.DIE_SHAPE = ORGDIE.DIE_SHAPE
AND BCKUPDIE.AROUND1 = ORGDIE.AROUND1
AND BCKUPDIE.ACROSS1 = ORGDIE.ACROSS1
WHERE ORGDIE.TOOL1 = @DIE
When run in sql it will give me any TOOL1 rows that have matching criteria. This is what I want my subreport to, am I going about this the wrong way?