473,836 Members | 1,384 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.P icture = Me!txtPictureOn ePath
Me!PictureTwo.P icture = Me!txtPictureTw oPath

and so on for how many images i have. PictureOne is an Image control
and txtPictureOnePa th 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 2081
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*******@hotm ail.com> wrote in message
news:11******** *************@o 13g2000cwo.goog legroups.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.P icture = Me!txtPictureOn ePath
Me!PictureTwo.P icture = Me!txtPictureTw oPath

and so on for how many images i have. PictureOne is an Image control
and txtPictureOnePa th 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
3297
by: Don Miller | last post by:
I have an ASP script that is called from a PDF form to process form data. On the last line of the script I have a Response.Redirect "webpage.asp" that leads to another target page with actual HTML. However when I start this process (by submitting form data) even when I comment out the processing code, the address bar shows the desired page, but the page never appears and the flag keeps spinning indefinitely (and doesn't stop even after 15...
1
10118
by: Winfried Koenig | last post by:
Hi everyone, I have a main page: -------------------------------------------------- <html><head><title>Test</title> </head><body> <img id="img_a" name="img_a" src="image_1.png" alt=""><br>
12
2649
by: Neil | last post by:
I previously posted re. this, but thought I'd try again with a summary of facts. I have an Access 2000 MDB with a SQL Server 7 back end. There is a view that is linked to the database via ODBC and has been in place for several years without any performance problems. Recently I added a couple of fields to the output of the view, and it became very slow when scrolling. When just opened in the database window, the linked view takes about...
2
1987
by: mikeoley | last post by:
Ok I have a Javascript slideshow working. Every image is linked to a another page in the site. Problem is...The link wont refresh to the next link once the second images rollovers in the slideshow. It only stays at the first images link. Is this a cache issue? Or is there anyway to create a random number to trick this or make it work properly. I'm very raw with Javascript so I'm having trouble figuring this out. Thank you in advance
5
9942
by: Neil | last post by:
I am getting time-out errors when I try to perform a simple delete on a linked server. The command is: Delete From MyTable Where PKID=12345 I have tried executing this command directly from Query Analyzer, but it just times out. However, when I run it from QA against the server itself (rather than from my local server against a linked server), it executes immediately. Similarly, if I run the same SQL command through an ODBC linked...
25
45818
by: bubbles | last post by:
Using Access 2003 front-end, with SQL Server 2005 backend. I need to make the front-end application automatically refresh the linked SQL Server tables. New tables will be added dynamically in the future, so the front-end application must have a way to keep up with this (instead of manually linking them).
2
11094
by: jpatchak | last post by:
Hello All, Is there a way to refresh a linked table programatically through VBA (as part of an error handler). I have an Access database with several tables linked through ODBC. User forms are in a front end MDB file. Sometimes, I must make changes to the data model that don't necessarily affect the front end forms for most of my users. When this happens, I have to refresh the tables and send a new copy of the MDB file out to all my users...
5
13395
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL http://mghospedagem.com/images/controlpanel.jpg instead of http://mghospedagem.comhttp://mghospedagem.com/images/controlpanel.jpg As u see, there's the website URL before the image URL.
0
9813
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9660
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10535
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10582
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10245
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7778
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6976
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5815
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4446
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.