getting state or error Oracle ADO SQL 'update' command
- From: "TZ" <nohtaeho@xxxxxxxxxxx>
- Date: Wed, 8 Oct 2008 22:20:16 +0900
If exist method for getting status or error in VB 6.0
See codes
--
Dim Rs As New ADODB.Recordset
Dim sSql As String
On Error GoTo onError
Rs.CursorLocation = adUseClient
Rs.CursorType = adOpenKeyset
Rs.ActiveConnection = An
An.BeginTrans
sSql = " UPDATE aa"
sSql = sSql & "set a1 = " & "'" & a1 & "',"
sSql = sSql & " a2 = " & "'" & a2 & "' "
sSql = sSql & " WHERE a3 = " & "'" & a3 & "'"
sSql = sSql & " AND a4 = " & "'" & a4 & "'"
sSql = sSql & " AND a5 = " & "'" & a5 & "'"
' not exist this row so 0(zero) rows updated, This state is error for me
'My codes want to know this status
' Plz somebody help my codes T . T
¤Ñ
An.Execute sSql
An.CommitTrans
--
I'm TZ
.
- Follow-Ups:
- Prev by Date: Re: Minimized Window Framebuffer ?
- Next by Date: Re: getting state or error Oracle ADO SQL 'update' command
- Previous by thread: Re: Minimized Window Framebuffer ?
- Next by thread: Re: getting state or error Oracle ADO SQL 'update' command
- Index(es):
Relevant Pages
|