473,670 Members | 2,546 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Use the File Open Browse box

I want to programatically open the Access "File" "Open" browse box to search
for a file. When it is selected I wnat to have it put the path in a text
box so it can be added to a list box.
Nov 12 '05 #1
4 2044
Best approach is to use the API call. Details:
http://www.mvps.org/access/api/api0001.htm

It can look a little intimidating if you are not used to API calls, but it's
basically copy the code and call the function.

You mentioned the path: if you just wanted to browse for a folder, use this
one instead:
http://www.mvps.org/access/api/api0002.htm

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Dave N" <ne*********@jo hndeere.com> wrote in message
news:3f******** @news1.dpn.deer e.com...
I want to programatically open the Access "File" "Open" browse box to search for a file. When it is selected I wnat to have it put the path in a text
box so it can be added to a list box.

Nov 12 '05 #2
Allen,

Thanks for the tips. I tried the browse folders and it works good. But
I need to get to the actual file name so will try the other (API) one.
I have never worked with them so I guess it is time to get my feet wet.
I will let you know how I make out.

Thanks again,
Dave.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #3
Rob
Allen,

I'm just beginning with programming in Access 2000 and i can't get the
API call http://www.mvps.org/access/api/api0001.htm to work. I don't
have problems with the browse function (.../api0002.htm).

Can you help me by explaning what to do step by step or send an
example *.mdb file.

Thanx,

Rob

"Allen Browne" <Al*********@Se eSig.Invalid> wrote in message news:<3f******* *************** @freenews.iinet .net.au>...
Best approach is to use the API call. Details:
http://www.mvps.org/access/api/api0001.htm

It can look a little intimidating if you are not used to API calls, but it's
basically copy the code and call the function.

You mentioned the path: if you just wanted to browse for a folder, use this
one instead:
http://www.mvps.org/access/api/api0002.htm

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Dave N" <ne*********@jo hndeere.com> wrote in message
news:3f******** @news1.dpn.deer e.com...
I want to programatically open the Access "File" "Open" browse box to

search
for a file. When it is selected I wnat to have it put the path in a text
box so it can be added to a list box.

Nov 12 '05 #4
Be sure to include the declarations in a standard module (i.e. on that shows
on the Modules tab of the Database window, not the module of some form).

Not sure what else to suggest.
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Rob" <he******@naco. nl> wrote in message
news:11******** *************** ***@posting.goo gle.com...
Allen,

I'm just beginning with programming in Access 2000 and i can't get the
API call http://www.mvps.org/access/api/api0001.htm to work. I don't
have problems with the browse function (.../api0002.htm).

Can you help me by explaning what to do step by step or send an
example *.mdb file.

Thanx,

Rob

"Allen Browne" <Al*********@Se eSig.Invalid> wrote in message

news:<3f******* *************** @freenews.iinet .net.au>...
Best approach is to use the API call. Details:
http://www.mvps.org/access/api/api0001.htm

It can look a little intimidating if you are not used to API calls, but it's basically copy the code and call the function.

You mentioned the path: if you just wanted to browse for a folder, use this one instead:
http://www.mvps.org/access/api/api0002.htm

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Dave N" <ne*********@jo hndeere.com> wrote in message
news:3f******** @news1.dpn.deer e.com...
I want to programatically open the Access "File" "Open" browse box to

search
for a file. When it is selected I wnat to have it put the path in a text box so it can be added to a list box.

Nov 12 '05 #5

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

Similar topics

7
16217
by: Martin | last post by:
Again drawing on the groups experience:- 1. For general file opening and file saving, using VB6, are there any issues with using the FileOpen and FileSave Common Dialog Boxes? 2. Is using the FileOpen and FileSave Common Dialog Boxes the best way to go in general? 3. For Most of my projects I will be using the same types of data input form and report output form, as discussed here recently. Also, the files that are
1
1811
by: jnc | last post by:
I have quite a weird problem whereby I need to obtain the username of the person who has a file open and it need to work over the nework. To explain a bit more.....I have a file system watcher which is watching a file over the network. The file can be opened by multiple users from mutiple computers within the same domain. Currently the file system watcher object (sits on a server watching out on the network) will tell me when the file...
0
883
by: Flashman | last post by:
I know this is an odd question but is their some way for Visual C++ .NET 2003 to open a file with extension .URL without trying to open it as "shortcut". Use a third party cross-platform tool that has file(Text Files) that must have URL extension. Previously with Visual C++ 6.00 could simply open them. Now ..NET 2003 on file open: "Cannot resolve this link. This file may not be a shortcut" ???? Why try to open it as a short-cut! Just open...
3
2299
by: JoNaS | last post by:
As a lot of us might now, the input file (aka browse button) in html does not allow for multiple file selection or for filtering file types. The File Open dialog used in WinForms allow these things and more. I developed a windows user control in VB.NET with a button and File Open Dialog, which allows multiple file selection. I registered the assembly with regasm.exe and call the object from the html page with the object tag: <OBJECT...
2
4409
by: OutdoorGuy | last post by:
Greetings, I have a "newbie" question in relation to opening files from C#. I have a Windows form where I allow the user to type in a file extension in a text box (e.g., "xls"). I then take that extension and use that as my filter criteria for the File Open dialog. Once the user selects a file with that extension (from the File Open dialog), I simply want to open that file (whether it is an .xls file, .txt file, etc.). I am...
9
24744
by: Prakash Singh Bhakuni | last post by:
am replacing the default "Browse..." button for input type=file. This works fine except that the form will only submit after the SUBMIT button is clicked twice. Any ideas on why this is happening or a workaround? I'm testing on IE Thanks! <html> <head></head> <body> <form name="test_form" method="post" action="test.jsp">
3
3185
by: Farshid Lashkari | last post by:
Hi, My goal is to detect all (or most) file dependencies of a script (i.e. modules, dlls, data files). Currently, after a script is finished executing I use sys.modules to determine all module dependencies, and I use win32process.EnumProcessModules to determine DLL dependencies. This works reasonably well, however I would still like to detect dependencies from regular file open calls. I did a little test by modifying __builtins__.open...
1
2357
by: Dachshund Digital | last post by:
If Explorer can display a file path longer than 260 odd characters, why is it that System.IO.File.Open Method can not? Calling GetFiles from my.computer.fileystem can return paths longer but File.Open can not open them? For example the following path causes File.Open to freak. Could not find a part of the path 'E:\_Old Development\Volume I \_Visual Studio Projects (Old)\_Very Old Development\_Development Example(s)\How to improve...
5
1440
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hi I am able to upload files to a server with a .net web application. The problem is I am providing a hyperlink so the user can open the file after it is placed on the server. For the URL I am using the absolute path to the file and setting this dynamically after the file is uploaded. For the hyperlink I have the target set to _blank. When clicking on the hyperlink nothing happens, wondering if I need to use a file open control and if...
0
8471
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8386
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8903
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8815
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8661
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7421
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6216
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4393
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2802
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.