E
Ernie
With your subreport based on a query, you can use SELECT
TOP 4 <fieldlist> WHERE <criteria> GROUP BY <grouping>
ORDER BY <sort order>
and get just the first 4 items returned by the query. I'm
not certain that you will get blanks when there are less
than 4 items returned, but this will limit you to a max of
4.
Note: <fieldlist> is whatever fields you want on your
subreport
<criteria> is how you want that information selected
<grouping> is how you want the selected records to be
grouped
already filled in. It's based on a set of linked tables
generated by third-party software. One of the table
relationships is one-to-many, so while the form doesn't
change, I have a subreport that fills in that section of
data as required. I originally encapsulated that entire
section of the form in a subreport, but the subreport only
repeats once for every child record found. I need to set
the number of times the subreport repeats to a fixed
number - say, 4 (this number won't change once
implemented, I just haven't decided what it ought to be
yet). If there are only three child records, I want the
fourth iteration to appear like the others, but with bound
fields blank.
and I'd like to keep this as simple as I can (especially
since this project is on a pretty short deadline.
TOP 4 <fieldlist> WHERE <criteria> GROUP BY <grouping>
ORDER BY <sort order>
and get just the first 4 items returned by the query. I'm
not certain that you will get blanks when there are less
than 4 items returned, but this will limit you to a max of
4.
Note: <fieldlist> is whatever fields you want on your
subreport
<criteria> is how you want that information selected
<grouping> is how you want the selected records to be
grouped
appear to be a regular paper form with some answers-----Original Message-----
I've designed an Access report that, when printed, will
already filled in. It's based on a set of linked tables
generated by third-party software. One of the table
relationships is one-to-many, so while the form doesn't
change, I have a subreport that fills in that section of
data as required. I originally encapsulated that entire
section of the form in a subreport, but the subreport only
repeats once for every child record found. I need to set
the number of times the subreport repeats to a fixed
number - say, 4 (this number won't change once
implemented, I just haven't decided what it ought to be
yet). If there are only three child records, I want the
fourth iteration to appear like the others, but with bound
fields blank.
do any coding. The rest of the report hasn't required any,If at all possible, I'd like to do this without having to
and I'd like to keep this as simple as I can (especially
since this project is on a pretty short deadline.