Hello to all,
I have an image control that is set to show a picture linked to it from hyperlink fields. These hyperlink fields are 2 different fields.. txtLocation (Location path) and txtPhoto (File Name).
My problem is...once I input the file name in txtPhoto, I want the photo to appear in the image control. But it doesn't. I have to go to the next record and then back to that record to see the image.
I have tried to put the following code in the afterupdate and lostfocus events but nothing is working. Is it my code or the placement of it?
Thanks for your help...
BakerUSMC
I have an image control that is set to show a picture linked to it from hyperlink fields. These hyperlink fields are 2 different fields.. txtLocation (Location path) and txtPhoto (File Name).
My problem is...once I input the file name in txtPhoto, I want the photo to appear in the image control. But it doesn't. I have to go to the next record and then back to that record to see the image.
I have tried to put the following code in the afterupdate and lostfocus events but nothing is working. Is it my code or the placement of it?
Code:
If (Me![Image].Properties("Picture") <> (Form_location!txtLocation & Me!(txtPhoto)) Then
Me![Image].Properties("Picture") = ""
Else
End If
BakerUSMC