How to Use a File Dialog in MS Access to Allow Users to Pick a File or Folder

Поделиться
HTML-код
  • Опубликовано: 15 дек 2024

Комментарии • 53

  • @interestingamerican3100
    @interestingamerican3100 2 года назад +3

    Excellent explanation! RUclips needs to promote more of this content.

  • @petewarby7158
    @petewarby7158 Год назад +1

    Unreal. Without even knowing it this is exactly what i cab use in a Db i am making to track orders and finances for my wife's upcoming business. It's a fantastic way of my keeping the size of the Db down and making it easy for her to grab the images she wants to link to. Brilliant. Brilliant.

  • @GunnerEshzurale-ph7bc
    @GunnerEshzurale-ph7bc Год назад +1

    This is really a good concept for file browser/manager. I had incorporated this function into my database which enables me to upload the link for all the documents related to my client (contract, lpo, work order, etc)

  • @colinmiles1052
    @colinmiles1052 Год назад +1

    Truly brilliant! Just what I wanted to achieve. Thank you.

  • @felipescherer6678
    @felipescherer6678 Год назад +1

    Simple and clear explanations. Thanks for sharing!

  • @neilbarnes9004
    @neilbarnes9004 5 месяцев назад +1

    Thanks

  • @josemariavicentetascon8428
    @josemariavicentetascon8428 2 года назад +1

    Excellent tutorial. Thank you for Sharing your knowledge.

  • @miles6875
    @miles6875 Год назад +1

    Very valuable topic, thanks Sean

  • @stampap2551
    @stampap2551 Год назад +1

    Great Video!!! Very helpful! Is there a way to extend this operation by having the ability to additionally copy the selected file to another folder of our choice? Thank you in advance!

    • @seanmackenziedataengineering
      @seanmackenziedataengineering  Год назад

      Thanks for the feedback! Yes, you can, by using the FileCopy statement after selection, ie:
      FileCopy sourcefilepath, destinationfilepath

  • @JCBrownVideos
    @JCBrownVideos Год назад +1

    Excellent! Could you please explain how to get just the filename without the path to put in a field? Thank you.

    • @seanmackenziedataengineering
      @seanmackenziedataengineering  Год назад

      You can parse it out something like:
      strFile = .SelectedItems(1)
      arFile = Split(strFile, "\")
      strFile = arFile(UBound(arFile))
      strFile will just be the selected file name.

    • @JCBrownVideos
      @JCBrownVideos Год назад

      @@seanmackenziedataengineering HI and thank you. In the meantime, I found another way, using the Dir function. So, Me!txtFile = Dir(.SelectedItems(1)) does the job. Dir returns just the filename without the path. I also noticed that exiting without selecting a file returned an error. I added in an If Then End If.

  • @Craigybabes6
    @Craigybabes6 2 месяца назад

    This is a great feature, thank you. How would you get the UNC filepath when selecting a file from a network drive. At the moment I just get the mapped drive letter.

    • @seanmackenziedataengineering
      @seanmackenziedataengineering  2 месяца назад

      No problem! When you open the Dialog, try browsing to the file using the Network location instead of the drive letter.

  • @AReelLife
    @AReelLife 2 года назад +1

    Nice video, well paced. I've been using SHBrowseForFolder and my bugabear is setting an initial directory.

  • @menkiz123
    @menkiz123 Год назад +1

    How would I open the file I am picking from the above...using the path stored in the text file?

    • @seanmackenziedataengineering
      @seanmackenziedataengineering  Год назад

      You can use Application.FollowHyperlink strFilepath in order to open the file you found in file dialog. If Filepath has spaces in it, you may need to put quotes around it, using double double quotes or Chr(34). ie.
      Application.FollowHyperlink Chr(34) & strFilePath & Chr(34)

  • @pathtolightbd
    @pathtolightbd 2 года назад +1

    Great tutorial on Access programming. Could you pls consider uploading a similar video on backing up the backend DB from within frontend ACCESS APPLICATION to a selected drive, folder and so on..Thanks

  • @Alejandra-mu2ys
    @Alejandra-mu2ys Год назад +1

    Great video!!!!!

  • @Ziahasan222
    @Ziahasan222 2 года назад +1

    Thank you Sir.

  • @Ziahasan222
    @Ziahasan222 2 года назад +1

    Sir how can i transfer my selected file to current project folder.. Plz do a video so we can learn more. Thanks you.

    • @seanmackenziedataengineering
      @seanmackenziedataengineering  2 года назад

      Using file dialog, you will get the file name. Then you can use FileCopy command to copy from your Dialog selected location to your project file location.

  • @valeryoni5649
    @valeryoni5649 Месяц назад +1

    Hi Sean, Why can I see only orders but not files?

  • @RAVICHANDRANR-d6u
    @RAVICHANDRANR-d6u 3 месяца назад +1

    Where can we view the upload documents?

    • @seanmackenziedataengineering
      @seanmackenziedataengineering  3 месяца назад

      The file dialog only returns the selected document. Only after you copy from one place to another do you see the upload.

  • @andriyos_
    @andriyos_ Год назад

    if click the button "Get File" and close the window without selecting a folder, then the error message "The expression you entered has an invalid reference to the Parent property" will appear. How to fix this error?

    • @seanmackenziedataengineering
      @seanmackenziedataengineering  Год назад +1

      You can trap the error by putting error handling on the procedure. Determine which error number it is, then either disregard it or give a custom message: ruclips.net/video/13aFUK7tmus/видео.html

    • @andriyos_
      @andriyos_ Год назад

      @@seanmackenziedataengineering Thank you very much. it helped))

  • @dbdata9836
    @dbdata9836 2 года назад +1

    thanks Mr

  • @MaraingMuong168
    @MaraingMuong168 2 года назад +1

    Dear Sir I want to learn Copy File Folder from one destination to another Destination in Access. please help to teach with this lesson Copy File

    • @seanmackenziedataengineering
      @seanmackenziedataengineering  2 года назад +1

      You can use FileCopy command in VBA. In a VBA Sub just type FileCopy then space and the IDE will tell you the options - Source file, Destination etc.

    • @MaraingMuong168
      @MaraingMuong168 2 года назад +1

      @@seanmackenziedataengineering Thank you Sir, Could you please 🥺 Teach by Creat Videos Step by Step for FileCopy Lesson ☺️

    • @seanmackenziedataengineering
      @seanmackenziedataengineering  2 года назад +1

      @@MaraingMuong168 I’ll put it on my list!

  • @dbdata9836
    @dbdata9836 2 года назад +2

    10/10

  • @dbdata9836
    @dbdata9836 2 года назад +1

    great