+ Reply to Thread
Results 1 to 2 of 2

Insert Row of Data with Pictures to Access

  1. #1
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Question Insert Row of Data with Pictures to Access

    I am trying to push x rows of data from a worksheet to an Access database, with three of the ten cells going to a respective attachment field in the DB.
    The Pictures within these cells might, or might not exist, and they are tiny thumbnails 10-50k. I receive a new workbook weekly from an external data manager.

    I'm not particularly great at VB within Access, so I'm looking for what type of approach I should take.

    Here's the first outline I've thrown together, which considers one row at a time, cycles through the pictures, and saves and adds them:

    Please Login or Register  to view this content.
    My other idea would be to simply transfer/insert/add the rows to the existing table in Access in a single action, and then go through the export of all shapes while saving them with identifiers. And then pull specific records from the DB and add the saved images to the empty attachment fields.

    I'm just unclear on how to properly add to a table of records, retrieve specific records if I opt for method #2, or event programatically insert attachments.

    Thoughts?
    Last edited by daffodil11; 08-10-2016 at 02:01 PM.

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Insert Row of Data with Pictures to Access

    Failing a method to programtically add attachments to the database, I instead opted to use the SaveAll Shapes loop to replace all pictures with filepaths of the images stored on a network share, and then append the entire worksheet directly to the database.

    With the filepaths in text fields, reports and forms are now generating to Picture Controls which correctly display the images I needed.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Insert Data in Access Table in Database from Excel Sheet
    By joogibabu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-07-2013, 06:33 AM
  2. Insert/Delete Multiple Pictures but 1 or more pictures not available
    By MrNoodles in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-28-2012, 02:10 PM
  3. Insert Pictures in Access
    By rumads in forum Access Tables & Databases
    Replies: 3
    Last Post: 01-07-2011, 12:47 PM
  4. pictures viewing in access
    By Ranbir in forum Access Programming / VBA / Macros
    Replies: 1
    Last Post: 10-08-2010, 09:15 AM
  5. How to view pictures with access
    By Ranbir in forum Access Tables & Databases
    Replies: 2
    Last Post: 07-17-2009, 12:25 AM
  6. [SOLVED] Insert pictures
    By TheRook in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-11-2006, 10:00 AM
  7. [SOLVED] Excel / Access / Pictures
    By Glenn in forum Excel General
    Replies: 0
    Last Post: 04-05-2005, 03:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1