CreateObject("Scripting.FileSystemObject")

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.
 
T

Tom van Stiphout

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.
 

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

Similar Threads


Top