Photo Path in Form

bill crumpton

Registered User.
Local time
Today, 19:06
Joined
Apr 20, 2000
Messages
105
I have created a form that can contain multiple records. On the form I have an unbound image field that contains the path to a stored picture on my server. Everything works fine unless I have I have two or more records on the form. Example: I direct the path to Jon Smith's picture on one record and on the second record I direct the path to Betty Jones picture. Both pictures display properly, the problem comes when I navigate through the records on the form....when I get to Jon Smith's record it shows his picture and when I navigate to Betty Jones record I still see Jon Smith's picture.

Any help on being able to refresh the picture when a new record is displayed? Thanks for all the help.


BAC
 
Last edited:
In the OnCurrent event reset the picture property of the image to the field holding the path.

Private Sub Form_Current()
Me.imgPerson.Picture = Me.PathField
End Sub
 

Users who are viewing this thread

Back
Top Bottom