Problem with getting an image to show on a form

  • Thread starter Thread starter trekgoes2malaysia
  • Start date Start date
T

trekgoes2malaysia

I have an event procedure that runs from a list box control on a
form. Selecting an item (city) from the list box changes the contents
of other
controls in a viewable subform (textboxes, image). All the controls
in the subform change when I select a new item from the control
on my main form as expected. All except one, the image control which
is suppose to show the picture of the city selected. The problem is
that the image that shows always seems to be one image too late! I
have linked the image to a text contol on the subform that contains
the
pathname where the image file is stored on the host computer . I
have
used the After & Before update event procedures as well as the Change
one. All seem to produce the same problem. Am I just not using the
right event procedure??Any suggestions on how I can correct this. My
event procedure code is something like...

Form Name! Subform name! Image control name.picture = Form Name!
Subform name! pathname control

Thanks in advanced,
Patrick
 
I have an event procedure that runs from a list box control on a
form.  Selecting an item (city) from the list box changes the contents
of other
controls in a viewable subform (textboxes, image).  All the controls
in the subform change when I select a new item from the control
on my main form as expected.  All except one, the image control which
is suppose to show the picture of the city selected. The problem is
that the image that shows always seems to be one image too late!  I
have  linked the image to a text contol on the subform that contains
the
pathname where the image file is stored on the host computer .  I
have
used the After & Before update event procedures as well as the Change
one.  All seem to produce the same problem.  Am I just not using the
right event procedure??Any suggestions on how I can correct this.  My
event procedure code is something like...

Form Name! Subform name! Image control name.picture = Form Name!
Subform name! pathname control

Thanks in advanced,
Patrick
 
Back
Top