(E-Mail Removed) wrote:
>Thanks for letting me down easy.
>
>I'm thinking I can solve this problem by creating several reports. I
>can have one report for a certain number of photos, and other reports
>for other numbers. The user will just have to correlate them after
>they print---not a big deal as we won't be printing hundreds at a time
>and there will be only 15 to 20 pages at the most.
>
>To do this, let me know what you think of this plan. I'm not good with
>VBA, so I like to get everything in a query, if I can. The way I see
>it, all I have to do is get three new fields in the query.
>
>1) I need a field that numbers the photos, beginning with one. (I
>don't need this if I just go with columning the photos as I
>successfully do now. But for five photos, that odd number, I may want
>to put two large photos side by side above three smaller photos side by
>side---making the page look rather neat filling up all the space). The
>numbers would help me place the photos. Order is not important.
>
>2) Another field that gives the number of items in each section
>(group). The reports will filter correctly based on this number.
>
>3) Another field is needed for the page numbers. There are two fields
>that create the order already (CategoryNumber and GroupNumber). A
>query can be built to number them sequentially.
>
>Now, as far as you know, this is possible, right?
>
>If so, I need help with number (1). The unique field is GroupID.
From yourexample data in another post, you do not have a
unique fied that can be used to order the records. If you
did have a unique field that could be used to produce a
unique sort order, then you can use a claculated field in
the report's record source query:
Seq: DCount("*", "thetable", "sortfield<=" & sortfield)
OTOH, if all you want is to identify which detail record you
are currently processing, then use a RunningSum text box
with the expression =1
You can easily determine the number of records in a group by
adding a text box with the expression =Count(*) to the
gtroup header section.
I have no idea what you want to do with the page numbers.
--
Marsh
MVP [MS Access]