473,396 Members | 2,009 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 2032
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*********@johndeere.com> wrote in message
news:3f********@news1.dpn.deere.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*********@SeeSig.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*********@johndeere.com> wrote in message
news:3f********@news1.dpn.deere.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.google.c om...
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*********@SeeSig.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*********@johndeere.com> wrote in message
news:3f********@news1.dpn.deere.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
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...
1
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...
0
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...
3
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...
2
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...
9
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...
3
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...
1
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...
5
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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,...
0
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
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,...

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.