Problem with Refreshing Image on a Subform - Revisited

T

trekgoes2malaysia

Thanks but the solution is still not clear to me. I can't imagine
the
soultion to this to be difficult. Programmers must have images on
subforms that they are able to refresh or show to match the record
selected on the parent form. Can somebody please provide more info.
___________________________________________________________

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
 
J

Jeanette Cunningham

Here are a couple of sample databases showing how to work with images.
The Northwind sample database has a form that changes images as the form
goes to a different record. Northwind is available on the Help menu item.
There is a sample database showing how to get to images to work in a form at
http://www.datastrat.com/DataStrat2.html

choose the sample called PictureMgs2K


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top