Access 2007 & FileSystemObject Error

K

Ken

I added a reference to teh Microsoft Scripting Runtime (System32\scrrun.dll).

I started to add code to check a folder for files and each time I go to set
the folder my database crashes and restartes.

dim fso as FileSystemObj
dim objFolder as Folder

set objFolder =

and at this point the database crashes.

Is anyone else having problems with the scripting engine and Access 2007?
 
J

JP

Try qualifying your references.

Dim fso as Scripting.FileSystemObject
Dim objFolder As Scripting.Folder


HTH,
JP
 

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