Making a path to a folder

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
Access 2003 Error 2749 3
Coding a path to an image to fill a placeholder 13
Moving Folders 1
Run-time error 2777 0

Back
Top