473,503 Members | 11,968 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

choosing folder in vba-access

Hi All

i'm trying to build a parallel function in vba access that appear in
excel:

FileDialog(msoFileDialogFolderPicker)

does anyone know how to choose only a folder through VBA in Access?
Jan 18 '08 #1
1 1519

"thread" <ya******@gmail.comwrote in message
news:7c**********************************@l32g2000 hse.googlegroups.com...
Hi All

i'm trying to build a parallel function in vba access that appear in
excel:

FileDialog(msoFileDialogFolderPicker)

does anyone know how to choose only a folder through VBA in Access?
Code for using the Windows API function "Browse for Folder" can be found at
http://www.mvps.org/access/api/api0002.htm. That site, by the way, is laden
with good information and tips -- it's a resource you ought to remember.

And, one comment... I believe the Excel method you describe requires an
ActiveX control, with attendant hassles in including and distributing the
ActiveX. The API method does not... it uses Windows functions that are
already on the user's machine.

Larry Linson
Microsoft Access MVP
Jan 18 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
4938
by: Mong | last post by:
Hi, I have an application which has several hard coded references to "C:\My Documents". Shortly our network setup will be changed so that a users My Documents folder will be on a mapped network...
20
1576
by: John | last post by:
Hi When I create a setup for my application, it installs all files for the app in C:\Program Files\MyCo\MyApp folder. How can I have some of the files to be installed under :\Program...
2
5025
by: John Regan | last post by:
Hello All I am trying to find the owner of a file or folder on our network (Windows 2000 Server) using VB.Net and/or API. so I can search for Folders that don't follow our company's specified...
0
1511
by: steven.shannon | last post by:
Hello, I'm writing an app that involves deleting all the items in a specified Outlook folder regardless of item type (i.e. Contacts, Tasks, etc.). This code was ported from VBA where it worked...
3
22295
by: antuantuan | last post by:
Hi. How can I initialize a FolderBrowserDialog choosing a particular RootFolder? I saw that FolderBrowserDialog has a RootFolder member, but it accepts only an Environment.SpecialFolder (but I...
6
6105
by: jodyblau | last post by:
I am using the following code to open a folder: Dim folderstring As String Dim rs1 As DAO.Recordset Set rs1 = CurrentDb.OpenRecordset("Select * from tblMisc_Settings where Description =...
1
4070
by: Simon | last post by:
Dear reader, I have a table with two fields, the fields are FileNameOld and FileNameNew. Now I am looking for VBA code to search in a system folder for the FileNameOld and change the filename...
3
6677
by: spamsink42 | last post by:
hello how do i create a dialog to allow the user to choose a folder? i tried FolderBrowserDialog but encountered a couple of problems: - when you specify the starting location (property...
2
1378
by: ashutosh11 | last post by:
Hi all, can anyone please help I am a new to VBA and need help here. I am trying to store EMAILs depending on the senders Email Domain. I should write a VBA script that will run everytime a new...
3
1489
by: GreggaR0und | last post by:
Hello; I have an application where a set of text files, all with the same record format, are contained in a folder. I wish to read in these physical files as one logical file to update my table. ...
0
7212
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7098
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7296
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7470
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5604
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3186
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
751
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
405
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.