Larry,
Thanks for taking the time to answer...
I use an action button on another form to run the code to open (in
design view)the report, create the controls and populate the picture
properties of each of the acImage controls. There is no code module
for (within) the report, the report is the result of a stand alone
piece of code. Once all of the controls have been created (each the
result of a record in a table), the code opens the report in preview
mode.
As the report is aimed at showing on paper what a retail fixture will
look like when 'dressed' in its Point of Sale material, I need to
create the report afresh for each unique fixture in each branch.
Regarding your comments about the difference between using the print
and format events within a report: the report is not bound to a data
source, rather it is populated by controls created as a result of
looping through an external (to the report) data source. So I (think)
that the issue of Access looping through the code for each record is
non-existent.
In terms of the number of controls being created on the report, I know
that there have been an absolute maximum of 40 controls on the report.
Even in the light of comments in this Group and elsewhere about
Access' limitations with regard to showing images, I do not think that
the capacity of Access to manage the image controls is being reached.
I've had no sign of the "out of memory error".
Thanks,
jack
"Larry Linson" <(E-Mail Removed)> wrote in message news:<utZ8Qy$(E-Mail Removed)>...
> In what event are you setting the Picture property of the Image Control for
> each record? If you are not setting it at runtime, then what you see is not
> surprising. The Print event is generally a better choice than the Format
> event, simply because the Format event may fire (and execute your VBA code)
> multiple times for each record.
>
> I'm not certain that I understand why it would be needful to create the
> Image control programmatically.
>
> There are example databases (the examples use forms, not reports) you can
> download from http://accdevel.tripod.com that illustrate three approaches to
> handling images in Access.
>
> If you are going to use them in reports, be sure to visit MVP Stephen
> Lebans' site at http://www.lebans.com/printfailures.htm
> PrintFailure.zip is an Access97 MDB containing a report that fails during
> the Access formatting process prior to being spooled to the Printer Driver.
>
> This MDB also contains code showing how to convert the contents of the Image
> control to a Bitmap file prior to printing. This helps alleviate the "Out of
> Memory" error that can popup when printing image intensive reports.
>
> Larry Linson
> Microsoft Access MVP