Hi everybody,
Here is my problem, I am using Visual Basic 6.0 and Informix 7.3 as backend for development.When I use the following code to update a specific record it updates all the records with null field.
'Insert telephone number into caa43640 (Attorney table)
Set rcdsetTwo = New ADODB.Recordset
strSql = "select caa43640008 from caa43640 where trim(caa43640001) = '0011234'"
rcdsetTwo.ActiveConnection = conn
rcdsetTwo.LockType = adLockOptimistic
rcdsetTwo.Source = strSql
rcdsetTw
pen
With rcdsetTwo
If Not .EOF Then
!caa43640008 = Trim(txtPhone.Text)
.Update
End If
End With
rcdsetTwo.Close
(Note: caa43640001 is the only primary key in the table.)
Is this a Informix driver driver problem or what? I tried with some other drivers too but it doesn't work.
Can anybody help me with this.
Here is my problem, I am using Visual Basic 6.0 and Informix 7.3 as backend for development.When I use the following code to update a specific record it updates all the records with null field.
'Insert telephone number into caa43640 (Attorney table)
Set rcdsetTwo = New ADODB.Recordset
strSql = "select caa43640008 from caa43640 where trim(caa43640001) = '0011234'"
rcdsetTwo.ActiveConnection = conn
rcdsetTwo.LockType = adLockOptimistic
rcdsetTwo.Source = strSql
rcdsetTw
With rcdsetTwo
If Not .EOF Then
!caa43640008 = Trim(txtPhone.Text)
.Update
End If
End With
rcdsetTwo.Close
(Note: caa43640001 is the only primary key in the table.)
Is this a Informix driver driver problem or what? I tried with some other drivers too but it doesn't work.
Can anybody help me with this.