473,498 Members | 1,833 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Open WinExplorer from Access VBA ?

Is it possible to open windows explorer to a particular directory, maybe
even select a particular file, from Access VBA?

I have a DB that is loaded with a file list - certain files I open in their
native program, others it would be nice if I could open explorer up to the
files location.

If anyone can give, or direct me to a code sample, I would greatly
appreciate it.

Thank You

--

/ Sean Mc /
"I have not failed. I've just found 10,000 ways that won't work."
- Thomas Alva Edison (1847-1931)
Nov 13 '05 #1
4 6484
are you trying to shell out to an application that opens the file?
Then just format the filename/path as a hyperlink.

Nov 13 '05 #2
What-a-Tool wrote:
Is it possible to open windows explorer to a particular directory, maybe
even select a particular file, from Access VBA?

I have a DB that is loaded with a file list - certain files I open in their
native program, others it would be nice if I could open explorer up to the
files location.

If anyone can give, or direct me to a code sample, I would greatly
appreciate it.


Just shell the directory name using the ShellExecute API (Google: "VB
ShellExecute")

--
[Oo=w=oO]

Nov 13 '05 #3
pi********@hotmail.com wrote in message news:<11**********************@z14g2000cwz.googleg roups.com>...
are you trying to shell out to an application that opens the file?
Then just format the filename/path as a hyperlink.


http://www.mvps.org/access/api/api0018.htm
Nov 13 '05 #4
Thanks for the helpfull pointers - I'm sure I'll be able to get it going
with all the helpfull examples I've turned up

Thanks again

--

/ Sean Mc /
"I have not failed. I've just found 10,000 ways that won't work."
- Thomas Alva Edison (1847-1931)

"What-a-Tool" <Se****@IHateSpam.Com> wrote in message
news:3yF6e.47924$AL.23346@lakeread08...
Is it possible to open windows explorer to a particular directory, maybe
even select a particular file, from Access VBA?

I have a DB that is loaded with a file list - certain files I open in
their native program, others it would be nice if I could open explorer up
to the files location.

If anyone can give, or direct me to a code sample, I would greatly
appreciate it.

Thank You

--

/ Sean Mc /
"I have not failed. I've just found 10,000 ways that won't work."
- Thomas Alva Edison (1847-1931)

Nov 13 '05 #5

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

Similar topics

2
1325
by: BjoernJackschina | last post by:
Hello, I want to set off WinExplorer by a C++ programm and it should to be on a webpage. Is that possible? If yes where can I get some information about it. Many thanks Bjoern
6
3620
by: Kenneth Courville | last post by:
Hello, I'm looking for assistance with the Access object model. I know this is VB, but I'm building an Office Add-using C# directed at Access 2002. I'm literate in VB, so you can reply in VB... I...
115
13958
by: TheAd | last post by:
At this moment I use MsAccess and i can build about every databound application i want. Who knows about a serious open source alternative? Because Windows will be a client platform for some time, i...
0
11998
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in...
0
887
by: jyuan | last post by:
Hi, I am new in .NET. Can some body point out if I can open windows explorer from web application by clicking on a link button? I have tried this: Protected Sub lbOpenFolder_Click(ByVal sender As...
6
2629
by: Bob Alston | last post by:
Looking for someone with experience building apps with multiple instances of forms open. I am building an app for a nonprofit organizations case workers. They provide services to the elderly. ...
3
3765
by: ConfusedMay | last post by:
Hi, I've created an access 2003 database that has a form with button called "open complaint database." This complaint database is also in access 2003. Here is my code to open the complaint...
2
9813
by: existential.philosophy | last post by:
This is a new problem for me: I have some queries that open very slowly in design view. My benchmark query takes about 20 minutes to open in design view. That same query takes about 20 minutes...
14
4607
by: SimeonD | last post by:
Hi I have an access database called Sales.Mdb In vb.net 2005, I'd like to open it. Which I can do. What I can't figure out is how to figure out if Sales.Mdb is open already. If so, I want to open...
0
7125
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
7004
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
7167
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
7208
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...
1
6890
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
5464
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
3095
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...
0
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
657
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.