Cosmos75
Registered User.
- Local time
- Today, 15:37
- Joined
- Apr 22, 2002
- Messages
- 1,280
I've seen some threads on finding a record but did not see one asking how to look for a string field and have it be case sensitive.
I have this code
e.g. if I am looking abc and only ABC exists, it should returm no match found instead the way I have it now it isn't case-sensitive.

I have this code
PHP:
Dim myDb As DAO.Database
Dim rst As DAO.Recordset
Dim pwFind As String
pwFind = "abc"
Set myDb = CurrentDb()
Set rst = myDb.openrecordset("tblPassword", dbOpenDynaset)
rst.FindFirst ("[PassWord] = " & Chr(39) & pwFind & Chr(39))
If rst.NoMatch Then
MsgBox "No Match"
Else
MsgBox "Found a Match"
End If