Gregof1976
Registered User.
- Local time
- Today, 00:00
- Joined
- Mar 28, 2011
- Messages
- 44
Hi All.
What I did wrong wit enclosed code? No, action after push the button..
What I did wrong wit enclosed code? No, action after push the button..
Code:
Private Sub klik_Click()
Dim dbsRejestr As DAO.Database
Dim rstColor As DAO.Recordset
Set dbsRejestr = CurrentDb
Set rstColor = dbsRejestr.OpenRecordset("TblCar")
rstColor.MoveFirst
Do Until rstColor.EOF
If rstColor!Color = "Red" Then
rstColor.Edit
rstColor!Color = "Orange2"
rstColor.Update
End If
rstColor.MoveNext
Loop
End Sub