Update an image control on a form

  • Thread starter Thread starter Martin
  • Start date Start date
M

Martin

Hi,

I currently have an image control on a form that shows
JPG images based upon a path in a text box. If I change
the path in the text box to point to a different image
the image control does not update until I change records.

I've tried using the forms requery method, however this
requeries all of the data returning the form back to the
first record.

Any help will be great

Martin
 
Sorry not to help you but have been trying to do that
myself (for thumbnails). Would you be willing to tell me
your code - have a form with a thumbnail field and a text
box below but can not link the latter to drive the
former. Was trying to code a standard folder path (e.g.
to a folder called Thumbnails), with only the .gif name in
the text box. Needless to say, it doesn't yet work for
me, let alone the refresh issue!
 
What code are you using? This works for me:

Private Sub txtMyPicturePath_AfterUpdate()
Me.Image2.Picture = Me.txtMyPicturePath
End Sub
 
Back
Top