Results 1 to 4 of 4
  1. #1
    doobybug is offline Advanced Beginner
    Windows 98/ME Access 2003
    Join Date
    Jan 2009
    Posts
    39

    Upload button in form to save pdf

    Hi,

    I have 2 tables
    tblCaseInfo
    ScanNo - Integer



    tblScans
    ScanNo - Integer
    Scan - OLE object

    In a form I have an Upload button to be able to upload a pdf and save it in tblScans but with a link using ScanNo to be able to access it. Any ideas how I can code this? Haven't found much on forums

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    You want to embed pdf in an attachment field? Embedding objects can really chew up Access 2GB limit. Why not leave the pdf external and just save the path in a text field?
    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
    doobybug is offline Advanced Beginner
    Windows 98/ME Access 2003
    Join Date
    Jan 2009
    Posts
    39
    Good idea...didn't think about it...can you still use a browse window to get the path of the file so that it would be user friendly? If so how?

  4. #4
    Micron is offline Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    Check out msoFileDialogFilePicker
    There is also a folder picker, but I'm not sure you want that unless you want to pick a folder to store a file in that you're outputting. Or you can pick a folder and append a file name to the location string and use the entire string as the location to that file, whereupon you store the path in a table as June7 suggested.
    You can find tons of examples on how to use them if that link doesn't help you enough.
    Last edited by Micron; 05-16-2017 at 08:03 PM. Reason: clarification
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Replies: 11
    Last Post: 09-12-2014, 02:11 PM
  2. form - save entered data only with save button
    By cbrxxrider in forum Forms
    Replies: 3
    Last Post: 10-20-2013, 12:39 PM
  3. Can one button Save & Open a New Form?
    By Nate74 in forum Forms
    Replies: 6
    Last Post: 01-17-2013, 05:58 PM
  4. Replies: 5
    Last Post: 12-19-2012, 01:05 PM
  5. Replies: 3
    Last Post: 10-08-2012, 08:40 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