I'm trying to create a report with a company logo in the report header using Access 2003. When I add the image object to the report header, I'm prompted to browse and enter the name of an image file. Is there a way to leave the picture name blank at this point? I want to set the picture name in the report on open event with code like this:
Image1.Picture = CurrentProject.Path & "\CompanyLogo.bmp"
The picture type is "linked".
The problem I'm having is that when the image control is added to the report header, I have to enter a picture name, like c:\myDir\dummyimage.bmp. Then if I move my database to a different computer that doesn't have c:\myDir\dummyimage.bmp, I'll get an error message when access is started that says it can't find c:\miDir\dummyimage.bmp.
I'm doing a similar thing on several forms, but when you do an image on a form, you can enter "(none)" for the picture name.
Image1.Picture = CurrentProject.Path & "\CompanyLogo.bmp"
The picture type is "linked".
The problem I'm having is that when the image control is added to the report header, I have to enter a picture name, like c:\myDir\dummyimage.bmp. Then if I move my database to a different computer that doesn't have c:\myDir\dummyimage.bmp, I'll get an error message when access is started that says it can't find c:\miDir\dummyimage.bmp.
I'm doing a similar thing on several forms, but when you do an image on a form, you can enter "(none)" for the picture name.