Making a path to a folder

G

Guest

In a form I have used a button to create a folder in a particular location
on a server, naming the folder using two fields from each record as below

MyFolder = Me![txtRef] & "_" & Me[txtName]
MyPath = "\\Server\PPS\LossFiles"
MkDir MyPath & "\" & MyFolder

On the form after the folder as been created, I want to retain the location
of the folder so that I can access the folder from within the form. How can I
do this??

Thanks in advance

Matt
 
G

Guest

The easiest way is to create an unbound text control on your form and set its
Visible property to No. Store your path name in the control.

TomU
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

hyperlink fields 1
Folder Button 2
Hyperlinks 3
Checking if a word doc exists 4
Moving Folders 1
Run-time error 2777 0
storing path only to database 6
Class Code for Excel, Import OLE Object Files 4

Top