Open Folder from Access

Vitality

Registered User.
Local time
Today, 12:22
Joined
Sep 16, 2004
Messages
15
I have and on this table based Form.
I have Folders With names 1, 2, 3....

I need command for open Folder with name, that equal to table ID.

Thanx in advance.
 
Open Folder in MS Access


Assume you know the table ID,

Dim xPath, xFolder, xCmd As String

xPath = "\\server\data1\"

xFolder = xPath & xTableID
' (MkDir xFolder ' create folder )
xCmd = "explorer.exe " & xFolder & "\" ' open folder
Shell (xCmd) ' run external command


Vitality said:
I have and on this table based Form.
I have Folders With names 1, 2, 3....

I need command for open Folder with name, that equal to table ID.

Thanx in advance.
 

Users who are viewing this thread

Back
Top Bottom