Results 1 to 5 of 5
  1. #1
    josnghi is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2015
    Posts
    6

    Insert picture in access form

    I create table with 1 field OLE Object type (picture in Human resource management). I would like to create the form to enter picture into field OLE Object so that we can generate the report displayed the picture in each records. Could you please help me

  2. #2
    nick404's Avatar
    nick404 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    May 2015
    Location
    Wisconsin
    Posts
    352
    If you want to display an image the best way to go about it is to not link it via a field in a table. Your database will become very bloated and suck up a lot more space that you think, even with just a few small .jpg's.

    The best way is to keep the pictures on a local folder somewhere where everyone who uses the database can access (a shared drive if this is a company network or likewise). Then keep the filepath to the image stored in a field in one of your tables and set the SourceDoc property of an OLE object frame to that filepath.

    Be aware though, that even though this is a better memory conservative option, I have had it where with very large images (using the latter method) I still get memory errors and issues.

    I am not entirely sure on this so someone else may have to confirm/correct me.

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I would use Image control and set ControlSource property to text field that stores file path/name.

    If you feel the db will stay small enough even with embedded images, then I suggest an Attachment field instead of OLEObject. I have not had good experience with OLEObject field and controls. An Image control bound to Attachment field will also dynamically display images.

    What is the image format - jpg, bmp, png, tiff?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    josnghi is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2015
    Posts
    6
    Thanks nick404 for your help

  5. #5
    josnghi is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2015
    Posts
    6
    Thanks June7 for your idea. I will try to dp

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

Similar Threads

  1. Replies: 1
    Last Post: 06-25-2014, 02:36 PM
  2. Picture insert problem
    By allstar45 in forum Reports
    Replies: 3
    Last Post: 04-20-2012, 01:17 PM
  3. Replies: 1
    Last Post: 08-30-2011, 11:54 PM
  4. Insert a picture with macro
    By KWarzala in forum Forms
    Replies: 8
    Last Post: 09-23-2009, 08:43 AM
  5. Avoid jump to first data after insert new picture
    By gigolomoden in forum Programming
    Replies: 0
    Last Post: 08-04-2008, 10:08 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