Re: case sensitivity in access
From: Ken Snell (kthissnellis9_at_notcomcast.realnet)
Date: 04/10/04
- Next message: Randyfprf: "Combo box selection show new subform"
- Previous message: Robert Raley: "Re: Add 1 to the highest number"
- In reply to: Gary Roach: "case sensitivity in access"
- Next in thread: John Spencer (MVP): "Re: case sensitivity in access"
- Reply: John Spencer (MVP): "Re: case sensitivity in access"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 10 Apr 2004 15:30:59 -0400
ACCESS does not support case sensitivity for searching/matching directly.
ACCESS treats all characters as upper case when using InStr, InStrRev, Like,
etc.
You can use the Asc() function to find specific upper or lower case
characters within a text string if you wish. In VBA you could loop through a
text string to find a lower case "a" (ASC value is 97) instead of the
generic upper case "A" (ASC value is 65). Something like this:
Dim strK As String
Dim intL As Integer
strK = "AaBbCcDd"
For intL = 1 To Len(strK)
If Asc(Mid(strK, intL, 1)) = 97 Then MsgBox "Found it - character " &
intL
Next intL
--
Ken Snell
<MS ACCESS MVP>
"Gary Roach" <jgroach@NOSPAMcogeco.ca> wrote in message
news:uva4hryHEHA.308@tk2msftngp13.phx.gbl...
> how do i set case sensitivity on in access? i want to search on case
> sensitive data. thanks for the help,
>
> gary
>
> --
> Gary Roach
> ADB Services
>
>
- Next message: Randyfprf: "Combo box selection show new subform"
- Previous message: Robert Raley: "Re: Add 1 to the highest number"
- In reply to: Gary Roach: "case sensitivity in access"
- Next in thread: John Spencer (MVP): "Re: case sensitivity in access"
- Reply: John Spencer (MVP): "Re: case sensitivity in access"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|