CreateObject("Scripting.FileSystemObject")

  • Thread starter Thread starter Baracudo
  • Start date Start date
B

Baracudo

This is a part of one public function made with Access 2003

Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.CreateTextFile("d:Posdb.xml", True)

a.WriteLine ([Forms]![Tabelle1].[FirstLine])
a.WriteLine ("<!-- Version=03.00.00 -->")
a.WriteLine ("<!-- * -->")

With Access 2007 could not be used.

Somebody knows why?

Thanks.
 
On Tue, 22 Apr 2008 02:56:01 -0700, Baracudo

Did you mean to write:
Set a = fs.CreateTextFile("d:\Posdb.xml", True)

As Alex said, fso is overkill for this task. Not that it shouldn't
work...

-Tom.
 
Back
Top