Runtime error

C

Craig

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

Craig

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

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

Top