Hi,
I don't know why i'm getting error message "Permission denied" when running the following code.
Sub CreateAfile
Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.CreateTextFile("c:\testfile.csv", True)
a.WriteLine("This is a test.")
a.Close
End Sub
what i'd like to do is to write recordset into a csv file.
Could anyone help me how to get around this problem?
Thank you very much in advance
I don't know why i'm getting error message "Permission denied" when running the following code.
Sub CreateAfile
Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.CreateTextFile("c:\testfile.csv", True)
a.WriteLine("This is a test.")
a.Close
End Sub
what i'd like to do is to write recordset into a csv file.
Could anyone help me how to get around this problem?
Thank you very much in advance