Results 1 to 4 of 4
  1. #1
    Sanar1234 is offline Novice
    Windows 10 Office 365
    Join Date
    May 2021
    Posts
    2

    Bulk upload of attachments to table field

    I have linked a sharepoint list to ms access. It has 3 columns. One is Id , the other“employee name” and the third one “attachment field” . The table contains 500 records. Each field should be updated with a pdf attachment. At present i am manually attaching to each field. Is there a way to write a code to automate this process. All the pdf files saved on a drive, the name of pdf files saved with the “ID”. The vba should search the id name from the column “id”and search in the drive for the file and attach it to the attachment column

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,527
    you should keep the pdf files on the server and not in the db.
    DO keep the path of the pdf file on the record.
    Storing the pdf as attachment does dbl-duty and just fills up the database when you already are linked to the file itself.

  3. #3
    Sanar1234 is offline Novice
    Windows 10 Office 365
    Join Date
    May 2021
    Posts
    2
    Thanks. But since i linked a sharepoint list with access. Whatever pdf i attach to the db access. It would be saved on the sharepoint file directory. I really need a code to attach pdfs to the database. Because then my business purpose will be solved. Kindly help me

  4. #4
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    5,016
    Look at using the dir() function to process the folder where the files are located.

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

Similar Threads

  1. Replies: 2
    Last Post: 07-13-2017, 10:44 AM
  2. Upload to a file share (Attachments)
    By Nono215 in forum Access
    Replies: 5
    Last Post: 01-12-2016, 04:46 PM
  3. Replies: 6
    Last Post: 09-22-2014, 03:36 PM
  4. Replies: 1
    Last Post: 09-03-2014, 10:48 AM
  5. Replies: 28
    Last Post: 04-07-2014, 08:08 AM

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