Advertisement

11.08.2007 at 07:46AM PST, ID: 22947606
[x]
Attachment Details

Create and Open a Explorer Folder from Access Form

Asked by logopolis1969 in dBase, Microsoft Access Database, Access Forms

Tags: , , , ,

Hi. I have a button on a Access form which opens a folder in explorer using the following code:

Private Sub Command12_Click()
Dim ProjPath
ProjPath = "Z:\" & Me.PolicyNo.Value
Shell "C:\WINDOWS\explorer.exe """ & ProjPath & "", vbNormalFocus
End Sub

This works great. What I would like it to do is to create a folder with the same name as the PolicyNo field if it does not already exist in the mapped Z drive, and then open it. Obviously if the folder already exists it would just open it as it does now.

Is this possible?

Many thanks

JohnStart Free Trial
[+][-]11.08.2007 at 07:54AM PST, ID: 20242198

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.03.2008 at 08:54AM PST, ID: 20574292

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: dBase, Microsoft Access Database, Access Forms
Tags: access, open, folder, explorer, form
Sign Up Now!
Solution Provided By: impactuser
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628