Access 2007 & FileSystemObject Error

  • Thread starter Thread starter Ken
  • Start date Start date
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?
 
Try qualifying your references.

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


HTH,
JP
 
Back
Top