at moment im trying to compare a value that i type in a text box to values
in the field of a table and if there is a match then there field is updated
like in the code below. but when i try it access is not responding.can any
one help. may be its looping endlessly? i dono. help anyone
Private Sub password_AfterU pdate()
Dim db As DAO.Database
Dim rs As DAO.Recordset
Set db = CurrentDb
Set rs = db.OpenRecordse t("SELECT KeywordIN FROM name")
rs.MoveFirst
Do Until rs.EOF
If rs.Fields("Keyw ordIN").Value = Me.password.Val ue Then
Me.Presence = "str"
Else
rs.MoveNext
End If
Loop
rs.Close
db.Close
End Sub
in the field of a table and if there is a match then there field is updated
like in the code below. but when i try it access is not responding.can any
one help. may be its looping endlessly? i dono. help anyone
Private Sub password_AfterU pdate()
Dim db As DAO.Database
Dim rs As DAO.Recordset
Set db = CurrentDb
Set rs = db.OpenRecordse t("SELECT KeywordIN FROM name")
rs.MoveFirst
Do Until rs.EOF
If rs.Fields("Keyw ordIN").Value = Me.password.Val ue Then
Me.Presence = "str"
Else
rs.MoveNext
End If
Loop
rs.Close
db.Close
End Sub
Comment