mkdir - In MS Access 97 doesn't work

B

Bake

I am trying to run the following code in MS Access 97 but I get an
error. Here's the code:

Function MakeDir2()
mkdir "C:\TEMP\TEMP_2\"
End Function

Here's the error:
"Compile error: Expected variable or procedure, not module"

C:\TEMP already exists on my hard drive, I just want to create a
subfolder in VB code. Ironically, this same code works just fine in
MS Access 2002. Any suggestions?

I've tried many iterations of the above code as well - with
parentheses, without, with the ending "\", without it. No luck.
 

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