Results 1 to 12 of 12
  1. #1
    Beamarshall is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2014
    Location
    Boston, Ma
    Posts
    6

    Adding a different Photo per employee record


    I'm new to Access so I don't know the terminology. I need to add a persons photo to their employee record and don't know where to start. Does anyone have any step by step notes on how to do this?

    Thank you in advance

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    The table must have a field you can call [photo] but the datatype is: OLE Object

    Build a form (instant form button icon) for the employee record. It should show a box. Paste the picture in the box.

  3. #3
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    I would recommend that you store the pictures in a folder on your Hard Drive and link to it.
    My 2 Cents!

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,643
    It is possible to embed images in an OLE or Attachment field. I've never had good experience with OLE field/controls.

    Lots of large documents can use up Access file size limit fast. If the images are small png or jpg files and this is a small db, embedding images would be ok.

    For dynamic display of images, I recommend using Image control bound to field or expression in ControlSource property. Depends on if the images are embedded or external files.

    If embedded, just bind Image control to the Attachment field. Drag attachment field from the Field List to form or report in design view.

    If images are external, need a field that has at least the image name. If each image is named with the EmployeeID, that field can serve. If all images are in same folder on central file server, the expression could be like:
    ="\\server name\path\" & [EmployeeID] & ".jpg"
    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.

  5. #5
    Beamarshall is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2014
    Location
    Boston, Ma
    Posts
    6
    I can't seem to paste it's grayed out after I copy.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,643
    Did you read post 4?
    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.

  7. #7
    Beamarshall is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2014
    Location
    Boston, Ma
    Posts
    6
    Yes, but I'm not a programmer and I need step by step info. Sorry, I'm new to Access and don't understand a lot about it.

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,643
    There is no macro or VBA programming required in my suggestion. Only requires understanding of very basic Access functionality.

    Exactly which item did you not understand?

    How to name image file?

    How to create field in table to store image name (or using the EmployeeID field) or to create an attachment type field?

    How to build a form or report?

    How to create a control by dragging field from field list?

    How to type an expression in textbox ControlSource property?
    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.

  9. #9
    Beamarshall is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2014
    Location
    Boston, Ma
    Posts
    6
    These two, sorry.

    How to create field in table to store image name (or using the EmployeeID field) or to create an attachment type field?
    How to type an expression in textbox ControlSource property?

  10. #10
    Beamarshall is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2014
    Location
    Boston, Ma
    Posts
    6
    I did get it to show up in a report but I also want it to show up in each record when in Form view can I do that?

  11. #11
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,643
    Use Image control on form same as on report.
    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.

  12. #12
    Beamarshall is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2014
    Location
    Boston, Ma
    Posts
    6
    Thank you so much, you have been a great help, thank you!!

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

Similar Threads

  1. Change Photo Depends on combo box value
    By mr_right in forum Access
    Replies: 3
    Last Post: 05-30-2013, 01:48 AM
  2. Replies: 1
    Last Post: 03-13-2013, 12:00 PM
  3. Track employee who made changes to record.
    By FormerJarHead in forum Access
    Replies: 4
    Last Post: 01-09-2013, 04:40 PM
  4. Adding employee hours done for each completed sale
    By crxftw in forum Database Design
    Replies: 2
    Last Post: 06-16-2011, 12:24 PM
  5. How to set an image for a photo directory
    By eninen7 in forum Access
    Replies: 3
    Last Post: 01-11-2011, 12:24 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