Results 1 to 6 of 6
  1. #1
    cowboy is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    291

    How do I set a link from a saved path

    I have an image on my report which I want to set to a file path which is saved in a field in the source table. The field with the stored file path is called Picture1. The Image is called imgPicture1

    I tried Me!imgPicture1.Picture = Me.Picture1
    Me!imgPicture1.Picture = Me!Picture1
    Me!imgPicture1.Picture = Picture1
    (and several other variations)

    None of these worked but I made a text box and set the source value to Picture1 and then used

    Me!imgPicture1.Picture = Me.txtTest.Text

    and it worked haha, now is there anyway to do this without having to create a text box to get the data from the record and then set the text box to not be visible? Thanks for help.

  2. #2
    llkhoutx is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Houston, Texas USA
    Posts
    373
    imgPicture1 us an OOE object. It is store in an OLE object on your form, then your report references that form OLE control.

    The report's OLE object record source is
    Code:
    Forms!YourFormName!YourFormOleObjectControlName 

  3. #3
    cowboy is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    291
    If my understanding is correct if I do that I have to have the image be part of the file and not just a link so the size of the file would get to large with a lot of pictures.

  4. #4
    llkhoutx is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Houston, Texas USA
    Posts
    373
    No, it's just referenced.

  5. #5
    cowboy is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    291
    When I run the report it asks me to Enter Parameter Value for
    Forms!DropInletForm!imgPicture1

    When I leave it blank and press OK it says cannot find field, why am I trying to access a field in the form when the data is stored in the table?

  6. #6
    llkhoutx is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Houston, Texas USA
    Posts
    373
    I don't now.

    Have you researched your question in an Access reference book?

    I suggest that you start a new thread with you question.

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

Similar Threads

  1. Programming the BackEnd path
    By James3mc in forum Programming
    Replies: 6
    Last Post: 11-21-2009, 06:39 PM
  2. Best way to link tables together?
    By marleyuk in forum Access
    Replies: 1
    Last Post: 06-07-2009, 08:44 AM
  3. relink to relative path TXT data files
    By tobynegus in forum Programming
    Replies: 0
    Last Post: 08-19-2008, 10:10 AM
  4. File path name using Transfer spreadsheet
    By JohnN in forum Import/Export Data
    Replies: 0
    Last Post: 11-14-2005, 06:57 AM
  5. How get path of executing database?
    By mscertified in forum Forms
    Replies: 3
    Last Post: 11-09-2005, 03:56 PM

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