Displaying Graphics

D

Don

This is a frustrating issue because it has worked before.

I have a report that has an image control in the "page header". Also in the
page header is a text box that is the path statement to a folder of graphics
on my server. As each record chages on my form, the path statement remains
the same but the file name in the target folder changes (as it should).

What I want to do is display the applicable graphic on each page of my
report. I have the following code in the format section of the
"PageHeaderSection":

Private Sub PageHeaderSection_Format(Cancel As Integer, FormatCount As
Integer)

Me![imgGRAPHIC].Properties("Picture") = Me![txtPATH]

End Sub

When I try to display the report, I get the following error message:

Run-time Error '2220':

Food Show 2007 can't open the file 'F:\_DATABASE FILES\Food Show\Food Show
08\Food Show Book Image Files]'.

This report actually worked last year; I can't figure out what has happened.
Any help would be appreciated.

Don

P.S. by the way, I'm using Access 2007
 
M

Mark A. Sam

Hello Don,

My first thought would be to be sure that the path, F:\_DATABASE FILES\Food
Show\Food Show 08\Food Show Book Image Files] exists on the machine you are
using. Open the Windows file explorer and make sure that you have F:\ drive
mapped.

God Bless,

Mark A. Sam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top