Question : Image Printing in Forms

Hello:

I have a form that includes an image - the image is tied to a key number on the form so that a different image appears as the records change. The images are not in the MDB but are stored on the hard drive with their name and location in [Image_Path].

The code to fetch the image is an Event procedure in the form properties (On current) (I don't know if this is part of the problem):

Option Compare Database
Private Sub Form_Current()
Me!Image49.Picture = [Image_Path]
End Sub

As I page through the records, the images change to match the key number, no problem.

Problem: When I Print Preview or Print, the same image is printed for every record - there is no updating during the print process.  It is the image that was last on the screen.

Any thoughts on what is causing this? I need to print these records WITH the proper image.

Thank You . . . . .

Answer : Image Printing in Forms

Yes

Me if the report

img was the name of my textfield that held the image location

You should use

Me!Image49.Picture = [Image_Path]

and i dont think the

Private Sub Form_Current()
Me!Image49.Picture = [Image_Path]
  Me.Repaint
  End Sub

Sub will do anything for you in report view

Random Solutions  
 
programming4us programming4us