Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Microsoft VBScript runtime (0x800A01A8)

Status
Not open for further replies.

mrdavid57

Programmer
May 10, 2001
11
US
I'm getting the following error on the the following code when the query returns an empty record set. It's not recognizing my "if statement". Please Help.

Microsoft VBScript runtime (0x800A01A8)


if rsV.eof <> &quot;False&quot; then
Response.Write(&quot;<script language=javascript> window.alert('The Supplier Number &quot; & rArea & &quot; and Date Range could not be located.')</script>&quot;)
myConn.Close
set myConn=nothing
set FSO=nothing
Response.Write(&quot;<script language=javascript> history.back()</script>&quot;)
end if

myConn.Close
set myConn=nothing
set FSO=nothing
 
You are comparing the EOF condition to a string. Try the following:

if not rsV.eof then Mighty :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top