I'm one of the arrogant American's who thinks the world
does not exist outside of the US.
Actually, I've never had to work with Unicode, so I don't
have any advice for that.
Chris Nebinger
>-----Original Message-----
>Hi Chris,
>
>Much neater than my solution.
>
>I tried it out with Central European and Greek characters
(on a form, to
>avoid Unicode problems in the Immediate pane) and it
fails on these,
>which must stem from the way the VBA string functions
handle Unicode
>(Windows 2000/Access 2002 at this end). With luck these
will eventually
>be fixed<g>.
>
>On Thu, 1 Jul 2004 13:45:28 -0700, "Chris Nebinger"
><(E-Mail Removed)> wrote:
>
>>The key is to use Option Compare Binary:
>>
>>Option Compare Binary
>>Option Explicit
>>Function ReturnCaseOfWord(strWord As String) As String
>> Select Case strWord
>> Case UCase(strWord)
>> ReturnCaseOfWord = "Upper"
>> Case LCase(strWord)
>> ReturnCaseOfWord = "Lower"
>> Case StrConv(strWord, vbProperCase)
>> ReturnCaseOfWord = "Proper"
>> Case Else
>> ReturnCaseOfWord = "Other"
>> End Select
>>End Function
>>
>>
>>Chris Nebinger
>>
>>>-----Original Message-----
>>>Greeting
>>>
>>>How Can i create a function that returns the case of a
>>>word.
>>>
>>>Example:
>>>
>>>Function ReturnCaseOfWord(strWord As String) As String
>>>
>>>End Function
>>>
>>>I want the function to return a string that is the case
>>of
>>>the word: "Upper", "Lower" or "Proper".
>>>
>>>Thanks for any help
>>>DZ
>>>.
>>>
>
>--
>John Nurick [Microsoft Access MVP]
>
>Please respond in the newgroup and not by email.
>.
>