468,272 Members | 2,007 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,272 developers. It's quick & easy.

Linked images don't refresh

I am going to try and explain what i think is happening in my form.

The records in my database each contain pictures. In some cases
multiple pictures. I have linked these images to my database using vba
code. All the image controls have no problem viewing the pictures for
each record the problem is when you change to a record which contains
one picture after viewing a record that has three pictures, the two
images from the previous record still show up on the screen.

The code i have on my On Current event in my form is

Me!PictureOne.Picture = Me!txtPictureOnePath
Me!PictureTwo.Picture = Me!txtPictureTwoPath

and so on for how many images i have. PictureOne is an Image control
and txtPictureOnePath is a text box which refers to the field a table
which contains the link to the picture.

What i can't understand is, even though there is no path in the second
picture textbox, why does it still show the previous image.

Can someone please help me with this!!!

Thank you in advance.

Christina

Nov 13 '05 #1
1 1800
Create yourself a very small (one-pixel is enough if you can do it) image in
the background color and assign it to the picture property of any empty
image frames. Alternatively, since you are setting these in code, set the
Visible property of the image frames to False if there is no picture for
them.

Larry Linson
Microsoft Access MVP

<ch*******@hotmail.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
I am going to try and explain what i think is happening in my form.

The records in my database each contain pictures. In some cases
multiple pictures. I have linked these images to my database using vba
code. All the image controls have no problem viewing the pictures for
each record the problem is when you change to a record which contains
one picture after viewing a record that has three pictures, the two
images from the previous record still show up on the screen.

The code i have on my On Current event in my form is

Me!PictureOne.Picture = Me!txtPictureOnePath
Me!PictureTwo.Picture = Me!txtPictureTwoPath

and so on for how many images i have. PictureOne is an Image control
and txtPictureOnePath is a text box which refers to the field a table
which contains the link to the picture.

What i can't understand is, even though there is no path in the second
picture textbox, why does it still show the previous image.

Can someone please help me with this!!!

Thank you in advance.

Christina

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Don Miller | last post: by
1 post views Thread by Winfried Koenig | last post: by
12 posts views Thread by Neil | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.