Results 1 to 8 of 8
  1. #1
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581

    PDF into the database

    I need to put a pdf into my database. It cannot be linked. It needs to be inside the database itself. What I'm trying to do is to have a button in a form that will look for the file and upload it into the database placing it into a table.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,898
    You want to embed objects into Attachment type field or OLEObject type field. I've never used OLEObject.

    Options:

    1. use the Attachment field Manage Attachments dialog

    2. use FileSystemObject to allow users to navigate to and select file. Then embedding file requires special recordset handling.
    Select a File or Folder using the FileDialog Object - Microsoft Access / VBA (bytes.com)
    Working with Attachment Fields - MS-Access Tutorial (sourcedaddy.com)
    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.

  3. #3
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    Are you tryin to embed as June has indicated or do you with to have the data in a table that can be queried?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,898
    Good question. If you want to extract data from an OCR or form-fill PDF, that is completely different.
    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
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581
    I have an OLE field in a table. I just want to embed it there.

  6. #6
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581
    I had to use the Access method instead of using the File Dialog. I couldn't get it to work and I'm on a deadline. I'll keep trying after I show how it should work. I have another question. I have uploaded the OLE file. I would like to have a button to print the PDF. Right now, I have to double click the OLE field. I don't want to show that field to the user. I want a button to open it up. The table is [tblDocuments]. The OLE field is [Document].

  7. #7
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,898
    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.

  8. #8
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    I am confused by your response. If you are looking for data in a PDF to populate an Access Table then...

    Import your PDF to Power Query and then Close and Load your data to Native Excel. You can then bring your data into Access either by importing or linking.

    https://www.youtube.com/watch?v=C6vqy30PDnE

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

Similar Threads

  1. Replies: 8
    Last Post: 07-09-2019, 12:51 AM
  2. Replies: 6
    Last Post: 10-30-2018, 04:35 AM
  3. Replies: 2
    Last Post: 04-27-2016, 06:20 AM
  4. Replies: 1
    Last Post: 07-01-2015, 04:18 AM
  5. Replies: 1
    Last Post: 03-21-2015, 11:55 AM

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