Only 1 record from subreport (1 Viewer)

Valentine

Member
Local time
Today, 11:06
Joined
Oct 1, 2021
Messages
261
I have a report created that pulls an individuals admin information and a sub report on there that should pull the most recent test results. For some reason it is pulling ALL the test results for the individual. I tried to turn can grow to no but that's not right. Is there a way to show just the most recent test results on the report?
 

plog

Banishment Pending
Local time
Today, 10:06
Joined
May 11, 2011
Messages
11,648
Sounds like your datasource is incorrect. You should base that subreport on a query that determines the record you want for each individual.
 

Valentine

Member
Local time
Today, 11:06
Joined
Oct 1, 2021
Messages
261
Yeah I figured out I was completely wrong. CanGrow is the way to make it 1 record I just had to resize my subreport on the report.
 

plog

Banishment Pending
Local time
Today, 10:06
Joined
May 11, 2011
Messages
11,648
Are you sure its the right record? You can ensure that with the correct datasource.
 

Valentine

Member
Local time
Today, 11:06
Joined
Oct 1, 2021
Messages
261
yeah i have it pulling from the query that I have sorting through date, so the top record is always going to be the most recent and thats what i wanted to show
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 11:06
Joined
Feb 19, 2002
Messages
43,304
Then change the recordSource query to select TOP 1

Do not just hide the other records. That will just cause other problems.
 

Users who are viewing this thread

Top Bottom