Within a query I wish to restrict all fields where it is lower case only.
E.G.
A, Aa, aAb....... is returned
Whilst
a, aa, aab..........is not returned
Within a query I wish to restrict all fields where it is lower case only.
E.G.
A, Aa, aAb....... is returned
Whilst
a, aa, aab..........is not returned
By default access is case insensitive.
If you want to test for lowercase, I suggest you look to vba and use the asc() function.
see http://www.techonthenet.com/access/f...string/asc.php
My suggestion would be to add the following function to a module in your db:Then add the following Where clause to your query:Code:Public Function CountCapitals(strInspect As String) As Integer CountCapitals = 0 If strInspect & "" = "" Then Exit Function Dim StrLn As Integer For StrLn = 1 To Len(strInspect) Select Case Asc(Mid(strInspect, StrLn, 1)) Case 65 To 90 CountCapitals = CountCapitals + 1 End Select Next StrLn
WHERE (((CountCapitals([YourTextField]))>0))
Replace YourTextField with the name of your field.
If this helped, please click the star at the bottom left of this posting and add to my reputation. Many thanks.
Bob Fitzpatrick