S
steve
I wrote a bit of code that looks at a table and updates a
particular field (below). However, I'm looking for a way
to look at the entire record...not just an individual
field and make updates based on criteria. Any suggestions
appreciated....
Thanks,
Function seekchange()
Dim db As Database
Dim rst As Recordset
Set db = CurrentDb()
Set rst = db.OpenRecordset("ARI0204")
rst.MoveFirst
Do Until rst.EOF
If rst!Field10 = "ri" Then
rst.Edit
rst!Field10 = "Account Executive"
rst.Update
End If
rst.MoveNext
Loop
rst.Close
End Function
particular field (below). However, I'm looking for a way
to look at the entire record...not just an individual
field and make updates based on criteria. Any suggestions
appreciated....
Thanks,
Function seekchange()
Dim db As Database
Dim rst As Recordset
Set db = CurrentDb()
Set rst = db.OpenRecordset("ARI0204")
rst.MoveFirst
Do Until rst.EOF
If rst!Field10 = "ri" Then
rst.Edit
rst!Field10 = "Account Executive"
rst.Update
End If
rst.MoveNext
Loop
rst.Close
End Function