This is doing my head in...
I have a main report which has parameter - ?age - when this is entered it pulls out records that match the paticular age (not surprising) - however as the information is being going to used for a study a set of record numbers that need to be returned have been included.
To do this I have used an IF statement within the supress section of the details section:
e.g.
IF age = 8 then not(recordnumber = [1,2,3,4,5]) else
IF age = 11 then not(recordnumber = [3,4,5,6,7])
etc...
What I want to do is create a sub-report based on the final result - which includes an ID number - which will give the address for that record.
It seems really simple and I cannot understand why I have not managed to get my head round this.
I have tried to create a sub-report linked by the ID - it give me a parameter but it does not take the results and it seems not to be linked in the slightest but acts more like a seperate report. If I enter an id number it will return the address - regardless if that record was included in the main report at all..!
I have also tried grouping the ID in both the main report and the sub-report - but for some reason when I come to link the 2 it does not give me the option to link on that group (?!??!?!)
What am I doing wrong...?
I have a main report which has parameter - ?age - when this is entered it pulls out records that match the paticular age (not surprising) - however as the information is being going to used for a study a set of record numbers that need to be returned have been included.
To do this I have used an IF statement within the supress section of the details section:
e.g.
IF age = 8 then not(recordnumber = [1,2,3,4,5]) else
IF age = 11 then not(recordnumber = [3,4,5,6,7])
etc...
What I want to do is create a sub-report based on the final result - which includes an ID number - which will give the address for that record.
It seems really simple and I cannot understand why I have not managed to get my head round this.
I have tried to create a sub-report linked by the ID - it give me a parameter but it does not take the results and it seems not to be linked in the slightest but acts more like a seperate report. If I enter an id number it will return the address - regardless if that record was included in the main report at all..!
I have also tried grouping the ID in both the main report and the sub-report - but for some reason when I come to link the 2 it does not give me the option to link on that group (?!??!?!)
What am I doing wrong...?