Runtime error

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I keep getting a "runtime error #91 Object Variable or With Block
Not Set" error message at the "fso.createtextfile" line of code below. Any
thoughts?

I'm using Access 2003.

Set fso = CreateObject("Scripting.FileSystemObject")
..
..
s = somedata
Set txtout = fso.CreateTextFile(FullFilePath, True)
txtout.WriteLine s
txtout.Close
..
..
..

thanks.
 
Figured it out...the rest of my code had me setting the fso to
"nothing"...needed to re-set it.
 
Back
Top