Forum Discussion

alex_n's avatar
alex_n
Brass Contributor
Apr 15, 2024

MS Access 365 - External Link to Folder

Hello Community!

 

I currently have an excel file (master) that uses PowerQuery that is linked to a folder in a SharePoint with several excel files (reports). Master consolidates 'pricing_report' sheets of the files in the folder. PowerQuery performs filters, cleaning, etc and returns a table consisting of all the reports in the folder. As transactions grow, the Master file is growing big in size and it is getting slow to run. 

 

I want to have the same setup in Access where I have it linked to the folder with the excel reports (new reports are dumped in the folder on a regular basis). File names do not stay consistent.

 

In Access I tried using the External Data tab, Import & Link but I don't see where it links to a folder.

 

Please advise on how to achieve it. 

 

Thanks in advance.

Alex.

  • alex_n's avatar
    alex_n
    Brass Contributor
    Hello Community, I have over 70 views on this post, but don't see any replies. Is the task achievable? Please let me know. Thanks again.
    • George_Hepworth's avatar
      George_Hepworth
      Silver Contributor

      alex_n 

      Long story short, no. You can't link to a FOLDER as a data source in Access.

       

      Access works with tables, i.e. your data must be tabular, with records and fields (rows and columns in Excel worksheets). So a folder won't work.

       

      There is a longer answer.

       

      However, Access does support other ways to achieve a similar purpose, assuming I understand your goal correctly.


      The devil is in the details. It would require custom VBA code to a large extent, so a canned solution would not be available. That's probably part of the reason for not getting responses.

       

      Finally, it's kind of a lot of work and would require details of the folder path and what your files would be and what you actually need to do with them. 

       

      I have done this kind of work in the past, but unless you are comfortable writing VBA, so doing a copy/paste of some of that custom code would be a bit much.

       

      The final consideration, therefore, is how much work you plan to invest in achieving this functionality.

       

       

      • alex_n's avatar
        alex_n
        Brass Contributor
        George, thanks for the detailed response. It does seem a bit of a work in order to achieve the task. I am open for alternative approaches using Access. Having an excel file as a middle man here is no option as I am trying to avoid using excel as it is getting inflated already with more appends and it requires additional steps that my cause unnecessary errors along the way.

Resources