Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have a segment of code that works most of the time but every once in a while I get this error.

 

row handle is invalid

 

My code looks like this (Except its cleaned up)

 

cmFax.CommandText = "SELECT FaxNumber..."

drFax = cmFax.ExecuteReader

drFax.Read()

 

//drFax Reads 6 items from 0 to 5

//THIS IS WHERE THE ERROR OCCURS (Works 99% of the time)

If drFax.IsDBNull(5) Then

 

sServerOutput(3) += 1

 

Else

 

cm.CommandText = "INSERT INTO ...."

cm.ExecuteNonQuery()

sServerOutput(0) += 1

sLastFile = sTempFileName

sLastFileTime = Now.TimeOfDay.ToString

 

 

End If:mad: :mad:

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...