471,874 Members | 1,743 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,874 software developers and data experts.

Microsoft VBScript runtime error '800a01a8'

Here is the error I get. Line 13 is the 'do while f.AtEndOfStream = false'
line. Your help is very much appreciated!

Microsoft VBScript runtime error '800a01a8'

Object required: 'f'

/ifaximport.asp, line 13

Here is the code that generates the error:

<%

getCon=Application("connectionObject")
set objIfax=server.CreateObject("adodb.recordset")
objIfax.open "select * from availifax",getcon,3,3
Set fs=Server.CreateObject("Scripting.FileSystemObject ")
Set f=fs.OpenTextFile(server.MapPath("ifaxnumbs.txt"))
do while f.AtEndOfStream = false
Line = f.readline
objIfax.addnew
objIfax("faxnum") = line
set f = nothing
loop%>

Jul 22 '05 #1
1 3918
Duh! I was setting the object to nothing inside the loop. Thanks to all who
were about to help!

"Erica" wrote:
Here is the error I get. Line 13 is the 'do while f.AtEndOfStream = false'
line. Your help is very much appreciated!

Microsoft VBScript runtime error '800a01a8'

Object required: 'f'

/ifaximport.asp, line 13

Here is the code that generates the error:

<%

getCon=Application("connectionObject")
set objIfax=server.CreateObject("adodb.recordset")
objIfax.open "select * from availifax",getcon,3,3
Set fs=Server.CreateObject("Scripting.FileSystemObject ")
Set f=fs.OpenTextFile(server.MapPath("ifaxnumbs.txt"))
do while f.AtEndOfStream = false
Line = f.readline
objIfax.addnew
objIfax("faxnum") = line
set f = nothing
loop%>

Jul 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by =?Utf-8?B?TWF0dCBDYWxob29u?= | last post: by
reply views Thread by YellowAndGreen | last post: by
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.