Results 1 to 2 of 2
  1. #1
    calobo is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2012
    Posts
    4

    Problem with displaying images in ms access


    Hello

    I'm not very experienced in ms access and I'm trying to make a data base where specefic images appear on a form and a report.

    Searching the net, I came across a way to do this, in which the image is placed on a folder on the hard drive and the images are linked to apear in the corresponding form in ms access.

    I created a text field in the table where you want to store
    the picture, and put the path to the picture there. Then on your form, I
    created an Image object, and in Form_Current() wrote:
    Me![ImageFrame].Picture = Me![fImagePath]

    This works quite well, but I have a problem which is quite bothering.

    Not all records have a image address liked, so no image is supposed to appear in records that have no image address.
    The problem is that when I moving across the records in the data base, if I go from a a record that has an image to one that is not supposed to have an image, the image of the record that has an image appears on the image box of the record that is not supposed to have an image in the image box.
    I would think that if a record does not have an image address, the data base would show a blank image box, but no, he appears to keep the previous image untill a new address gives him new information.

    I want a record to display an image if it has an image address and those that do not have an image address, the image box appear empty

    Can anyone help me to resolve this

    Best wishes

    Carlos

  2. #2
    hertfordkc is offline 18 year novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    481

    You probably need Me.refresh.

    Where you put the command depends on how you are changing the records and how they are being displayed. Perhaps in a control on the form which changes when the record changes.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 01-20-2012, 04:31 PM
  2. Replies: 2
    Last Post: 06-18-2011, 09:55 AM
  3. problem displaying data in report
    By dreamweaver547 in forum Reports
    Replies: 4
    Last Post: 10-15-2010, 04:26 PM
  4. Replies: 17
    Last Post: 08-26-2009, 11:27 AM
  5. Displaying images from another folder
    By w3leon in forum Access
    Replies: 0
    Last Post: 01-30-2009, 06:18 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums