G
gary125
Dear experts,
I 'm new in MS2000 programming and have problem in updating an record
"caat_chop" in a table called "testdata"
the ms2000 reply "Compile error: method or data member not found" in the code
rstd.update listed below. what can I do to update the pgm codes? pls help
thanks
Gary
Option Compare Database
Dim cncaat As ADODB.Connection
Dim rstd As New ADODB.Recordset
Option Explicit
Sub action01()
Set cncaat = CurrentProject.Connection
rstd.Open "Select * from testdata", cncaat
rstd.MoveFirst
Do Until rstd.EOF
If Left(rstd![field1], 8) = "Record (" Then
rstd.edit
![caat_chop] = ![field1]
rstd.Update
End If
rstd.MoveNext
Loop
cncaat.Close
rstd.Close
End Sub
I 'm new in MS2000 programming and have problem in updating an record
"caat_chop" in a table called "testdata"
the ms2000 reply "Compile error: method or data member not found" in the code
rstd.update listed below. what can I do to update the pgm codes? pls help
thanks
Gary
Option Compare Database
Dim cncaat As ADODB.Connection
Dim rstd As New ADODB.Recordset
Option Explicit
Sub action01()
Set cncaat = CurrentProject.Connection
rstd.Open "Select * from testdata", cncaat
rstd.MoveFirst
Do Until rstd.EOF
If Left(rstd![field1], 8) = "Record (" Then
rstd.edit
![caat_chop] = ![field1]
rstd.Update
End If
rstd.MoveNext
Loop
cncaat.Close
rstd.Close
End Sub