chris6user
Programmer
I am trying to update certan record in Oracle table. For some reason it updates all the recods in this table. This is my code:
Dim RecSet As ADODB.Recordset
sSQL = "select * from export_val where rec_id = " & mvarRec_id
Set RecSet = New ADODB.Recordset
RecSet.Open sSQL, con, adOpenDynamic,adLockPessimistic
If RecSet.EOF Then
RecSet.AddNew
End If
RecSet!Rec_ID = mvarRec_id
RecSet!Year = mvarYear
RecSet.update
RecSet.Close
is something wrong with it?
Dim RecSet As ADODB.Recordset
sSQL = "select * from export_val where rec_id = " & mvarRec_id
Set RecSet = New ADODB.Recordset
RecSet.Open sSQL, con, adOpenDynamic,adLockPessimistic
If RecSet.EOF Then
RecSet.AddNew
End If
RecSet!Rec_ID = mvarRec_id
RecSet!Year = mvarYear
RecSet.update
RecSet.Close
is something wrong with it?