Making folders over network

M

Matt

An easy one for someone.

I have some code to make a folder over a network using a field in a form. I
can make the folder locally but not over the network. Can any one tell me
where i am going wrong. Here is the code.

Dim myFolder, myPath
myFolder = Me![txtJobNumbder]
myPath = "\\server\test"
ChDir myPath
MKDir myFolder

It works on a locally but when I use the myPath section over the network
like in my example it does not work.

Thanks

Matt
 
R

Ron Weiner

Matt

Try:
myPath = "\\server\test"
MKDir myPath & "\" & myFolder

If that does not work then you need to start looking at permissions

Ron W
 
M

Matt

Thanks that works

Ron Weiner said:
Matt

Try:
myPath = "\\server\test"
MKDir myPath & "\" & myFolder

If that does not work then you need to start looking at permissions

Ron W
Matt said:
An easy one for someone.

I have some code to make a folder over a network using a field in a form. I
can make the folder locally but not over the network. Can any one tell me
where i am going wrong. Here is the code.

Dim myFolder, myPath
myFolder = Me![txtJobNumbder]
myPath = "\\server\test"
ChDir myPath
MKDir myFolder

It works on a locally but when I use the myPath section over the network
like in my example it does not work.

Thanks

Matt
 

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

Top