I wanted to create a subfolder in a directory and I used the MkDir statement but it gives me an error like "Path/File access error"
Here are the codes:
MkDir "\\BC123456\Att achments\" & Me.UniversityID .Value
BC123456 = shared computer
Attachments = shared folder
Me.UniversityID = is a text box on the form with a number format
I tried to use the Str() function but still it gives me an error. I even tried this:
Dim strUniversityNo as string
strUniversityNo = Me.UniversityID
MkDir "\\BC123456\Att achments\" & strUniversityNo
But still this doesn't work.
Please help.
Here are the codes:
MkDir "\\BC123456\Att achments\" & Me.UniversityID .Value
BC123456 = shared computer
Attachments = shared folder
Me.UniversityID = is a text box on the form with a number format
I tried to use the Str() function but still it gives me an error. I even tried this:
Dim strUniversityNo as string
strUniversityNo = Me.UniversityID
MkDir "\\BC123456\Att achments\" & strUniversityNo
But still this doesn't work.
Please help.
Comment