classic ASP error 80020009 Exception occurred

classic ASP error 80020009 Exception occurred

This probably means that the field in the database is Null. You could add this line before the problematic line:

If isNull( myString ) Then Exit Function

In case that doesnt work, you could also try changing the problematic line into this:

If  & myString <>  Then

This error also comes up if you try to access a record in a recordset which has no records (ie if you forgot to check for eof before accessing the fields).

classic ASP error 80020009 Exception occurred

check before replace, does ` does this exist in string by

if instr(mystring, `) then
your code
else
your code
end if

Leave a Reply

Your email address will not be published.