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

  Рет қаралды 14,397

Sean MacKenzie Data Engineering

Sean MacKenzie Data Engineering

Күн бұрын

Пікірлер: 53
@interestingamerican3100
@interestingamerican3100 2 жыл бұрын
Excellent explanation! KZbin needs to promote more of this content.
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
Much appreciated!
@petewarby7158
@petewarby7158 Жыл бұрын
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.
@seanmackenziedataengineering
@seanmackenziedataengineering Жыл бұрын
Awesome! Glad that will work for you 👍
@GunnerEshzurale-ph7bc
@GunnerEshzurale-ph7bc Жыл бұрын
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)
@seanmackenziedataengineering
@seanmackenziedataengineering Жыл бұрын
Nice! That's a great use for this function. Once you get it, it can automate so many things.
@felipescherer6678
@felipescherer6678 2 жыл бұрын
Simple and clear explanations. Thanks for sharing!
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
Glad it was helpful!
@colinmiles1052
@colinmiles1052 Жыл бұрын
Truly brilliant! Just what I wanted to achieve. Thank you.
@seanmackenziedataengineering
@seanmackenziedataengineering Жыл бұрын
Awesome! Glad that worked :-)
@josemariavicentetascon8428
@josemariavicentetascon8428 2 жыл бұрын
Excellent tutorial. Thank you for Sharing your knowledge.
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
My pleasure!
@neilbarnes9004
@neilbarnes9004 6 ай бұрын
Thanks
@seanmackenziedataengineering
@seanmackenziedataengineering 6 ай бұрын
Many thanks!
@miles6875
@miles6875 Жыл бұрын
Very valuable topic, thanks Sean
@seanmackenziedataengineering
@seanmackenziedataengineering Жыл бұрын
Much appreciated!
@JCBrownVideos
@JCBrownVideos Жыл бұрын
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.
@menkiz123
@menkiz123 2 жыл бұрын
How would I open the file I am picking from the above...using the path stored in the text file?
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
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)
@Craigybabes6
@Craigybabes6 3 ай бұрын
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 3 ай бұрын
No problem! When you open the Dialog, try browsing to the file using the Network location instead of the drive letter.
@RAVICHANDRANR-d6u
@RAVICHANDRANR-d6u 4 ай бұрын
Where can we view the upload documents?
@seanmackenziedataengineering
@seanmackenziedataengineering 4 ай бұрын
The file dialog only returns the selected document. Only after you copy from one place to another do you see the upload.
@valeryoni5649
@valeryoni5649 2 ай бұрын
Hi Sean, Why can I see only orders but not files?
@seanmackenziedataengineering
@seanmackenziedataengineering 2 ай бұрын
When you open the File Dialog?
@Ziahasan222
@Ziahasan222 2 жыл бұрын
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.
@stampap2551
@stampap2551 2 жыл бұрын
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 2 жыл бұрын
Thanks for the feedback! Yes, you can, by using the FileCopy statement after selection, ie: FileCopy sourcefilepath, destinationfilepath
@pathtolightbd
@pathtolightbd 2 жыл бұрын
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
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
Thanks, I'll add that to my list!
@Alejandra-mu2ys
@Alejandra-mu2ys Жыл бұрын
Great video!!!!!
@seanmackenziedataengineering
@seanmackenziedataengineering Жыл бұрын
Thanks!!
@AReelLife
@AReelLife 2 жыл бұрын
Nice video, well paced. I've been using SHBrowseForFolder and my bugabear is setting an initial directory.
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
Glad it helped!
@andriy-3d
@andriy-3d Жыл бұрын
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 Жыл бұрын
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: kzbin.info/www/bejne/Z2TEd4iBbNmgq9U
@andriy-3d
@andriy-3d Жыл бұрын
@@seanmackenziedataengineering Thank you very much. it helped))
@MaraingMuong168
@MaraingMuong168 2 жыл бұрын
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 жыл бұрын
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 жыл бұрын
@@seanmackenziedataengineering Thank you Sir, Could you please 🥺 Teach by Creat Videos Step by Step for FileCopy Lesson ☺️
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
@@MaraingMuong168 I’ll put it on my list!
@Ziahasan222
@Ziahasan222 2 жыл бұрын
Thank you Sir.
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
Welcome!
@dbdata9836
@dbdata9836 2 жыл бұрын
thanks Mr
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
No problem!
@dbdata9836
@dbdata9836 2 жыл бұрын
10/10
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
thanks!
@dbdata9836
@dbdata9836 2 жыл бұрын
great
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
thanks!
How to Write a Custom Text File Using MS Access VBA
8:36
Sean MacKenzie Data Engineering
Рет қаралды 4 М.
How to Kick Users out of Your MS Access Database
19:19
Sean MacKenzie Data Engineering
Рет қаралды 11 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Use a File Dialog in Microsoft Access
10:32
codekabinett.com/en
Рет қаралды 30 М.
How to Create File Dialog Box in Ms Access
12:45
Edcelle John Gulfan
Рет қаралды 9 М.
How to Filter the Data in a Combo Box or List Box as you Type in Microsoft Access
22:53
How to Use Data Macros to Track Changes to Field Entries in MS Access
9:00
Sean MacKenzie Data Engineering
Рет қаралды 7 М.
How to Open a RecordSet in Access VBA and Loop Through the Records
12:45
Sean MacKenzie Data Engineering
Рет қаралды 27 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН