Results 1 to 7 of 7
  1. #1
    yrstruly is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2024
    Posts
    122

    Loading Multiple Documents


    I would like to select multiple documents and upload them. These bunch of documents would all be like to a Document.Id etc.
    Files: https://drive.google.com/file/d/1aC-...ew?usp=sharing

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,566
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #3
    madpiet is offline Expert
    Windows 10 Office 365
    Join Date
    Feb 2023
    Posts
    566
    What if you do something like specify the folder path that contains the documents you want to choose from, read those into a collection or similar, and then populate a multi-select listbox with the choices? Then you can select individual ones and use the .ItemsSelected collection of the listbox to process them one at a time (do whatever "loading" is... you'd just pass each file to some function/sub to do that).

  4. #4
    yrstruly is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2024
    Posts
    122
    Have you had a look at my DB? It is suppose to select multiple files with one click and read the file names and location into a table.

  5. #5
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,566
    Quote Originally Posted by yrstruly View Post
    Have you had a look at my DB? It is suppose to select multiple files with one click and read the file names and location into a table.
    Well you have been shown how it could be done? Why not work on that?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  6. #6
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 11 Office 365
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,879
    I believe he is talking about selecting multiple files with the filedialog FilePicker

    Code:
    Sub UseFileDialog()
     
        Dim lngCount As Long
     
        ' Open the file dialog
        With Application.FileDialog(msoFileDialogOpen)
            .AllowMultiSelect = True
            .Show
     
            ' Display paths of each file selected
            For lngCount = 1 To .SelectedItems.Count
                MsgBox .SelectedItems(lngCount)
            Next lngCount
     
        End With
     
    End Sub
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

  7. #7
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,566
    Quote Originally Posted by moke123 View Post
    I believe he is talking about selecting multiple files with the filedialog FilePicker

    Code:
    Sub UseFileDialog()
     
        Dim lngCount As Long
     
        ' Open the file dialog
        With Application.FileDialog(msoFileDialogOpen)
            .AllowMultiSelect = True
            .Show
     
            ' Display paths of each file selected
            For lngCount = 1 To .SelectedItems.Count
                MsgBox .SelectedItems(lngCount)
            Next lngCount
     
        End With
     
    End Sub
    That is what I thought, and the link explained how.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

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

Similar Threads

  1. Replies: 1
    Last Post: 06-29-2017, 01:48 PM
  2. How to print off multiple word documents
    By Ajz1971 in forum Access
    Replies: 10
    Last Post: 01-20-2017, 07:57 AM
  3. Mail Merge Multiple Documents At Once, Albert Kallal
    By David92595 in forum Programming
    Replies: 3
    Last Post: 02-05-2013, 05:25 PM
  4. Replies: 1
    Last Post: 11-30-2011, 07:06 PM
  5. Multiple Mailmerge documents
    By sabbo64 in forum Access
    Replies: 0
    Last Post: 09-05-2009, 04:44 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