Try qualifying your references.
Dim fso as Scripting.FileSystemObject
Dim objFolder As Scripting.Folder
HTH,
JP
"Ken" <(E-Mail Removed)> wrote in message
news:54C3A59C-D66B-44A4-9529-(E-Mail Removed)...
>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?
>
|