Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: read error


Message #1 by "Alex Alexander" <iamalex@e...> on Fri, 9 Mar 2001 08:33:58
I'm getting a read error when I try to add. Can you tell me what I have wrong.

Private Sub cmdAdd_Click()
Dim i As Integer
On Error Resume Next
cn.BeginTrans
If Err > 0 Then
cn.RollbackTrans
rs.Close
Set rs = Nothing
Exit Sub
End If
For i = 0 To 2
Text1(i) = ""
Next i
Text1.SetFocus
cmdAdd.Enabled = False
DisplayContents
End Sub

Thank you.

  Return to Index