Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

String manipulation

Question posted by: Jamenson (Guest) on July 4th, 2008 10:55 PM
Hi everyone!

I want to convert strings like "LEONARDO DI CAPRIO" to "Leonardo di
Caprio". The function StrConv converts to "Leonardo Di Caprio" and we
think it is innapropriated.

Any help appreciated.

Thank you!
Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
fredg's Avatar
fredg
Guest
n/a Posts
July 4th, 2008
11:05 PM
#2

Re: String manipulation
On Fri, 4 Jul 2008 15:48:50 -0700 (PDT), Jamenson wrote:
Quote:
Originally Posted by
Hi everyone!
>
I want to convert strings like "LEONARDO DI CAPRIO" to "Leonardo di
Caprio". The function StrConv converts to "Leonardo Di Caprio" and we
think it is innapropriated.
>
Any help appreciated.
>
Thank you!


You'll have to create a User Defined Function using StrConv() and a
look-up table to find names with these different kinds of
capitalizations, i.e. McDonald, O'Brien, Smith-Jones, van den Steen,
etc.,
or .....
manually search and change these relatively few oddball
miss-capitalizations.

Be aware, also, that sometimes the same name can be capitalized
differently. McDaniels and Mcdaniels are both correct.

Of course the best method is correct data entry. <g>

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail

Jamenson's Avatar
Jamenson
Guest
n/a Posts
July 5th, 2008
06:15 PM
#3

Re: String manipulation
On 4 jul, 20:01, fredg <fgutk...@example.invalidwrote:
Quote:
Originally Posted by
On Fri, 4 Jul 2008 15:48:50 -0700 (PDT), Jamenson wrote:
Quote:
Originally Posted by
Hi everyone!

>
Quote:
Originally Posted by
I want to convert strings like "LEONARDO DI CAPRIO" to "Leonardo di
Caprio". The function StrConv converts to "Leonardo Di Caprio" and we
think it is innapropriated.

>
Quote:
Originally Posted by
Any help appreciated.

>
Quote:
Originally Posted by
Thank you!

>
You'll have to create a User Defined Function using StrConv() and a
look-up table to find names with these different kinds of
capitalizations, i.e. McDonald, O'Brien, Smith-Jones, van den Steen,
etc.,
or .....
manually search and change these relatively few oddball
miss-capitalizations.
>
Be aware, also, that sometimes the same name can be capitalized
differently. McDaniels and Mcdaniels are both correct.
>
Of course the best method is correct data entry. <g>
>
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail


Thank you Fred for your help, but, unfortunately, I am not a clever
boy in Microsoft Access. Even I am not a professional IT or
professional programmer, or such like that. I have designed a database
to supply the needs of a Small Office. When we started using the
database, I have noticed that people was typing customer names in an
innadequate way: capitalized. So, if you could, explicitly, show me
the code, it could be better for me understant and implement it.

Best regards.

Jamenson Ferreira Espindula
Recife - Pernambuco - Brazil.

Salad's Avatar
Salad
Guest
n/a Posts
July 6th, 2008
07:35 PM
#4

Re: String manipulation
Jamenson wrote:
Quote:
Originally Posted by
On 4 jul, 20:01, fredg <fgutk...@example.invalidwrote:
>
Quote:
Originally Posted by
>>On Fri, 4 Jul 2008 15:48:50 -0700 (PDT), Jamenson wrote:
>>
Quote:
Originally Posted by
>>>Hi everyone!

>>
Quote:
Originally Posted by
>>>I want to convert strings like "LEONARDO DI CAPRIO" to "Leonardo di
>>>Caprio". The function StrConv converts to "Leonardo Di Caprio" and we
>>>think it is innapropriated.

>>
Quote:
Originally Posted by
>>>Any help appreciated.

>>
Quote:
Originally Posted by
>>>Thank you!

>>
>>You'll have to create a User Defined Function using StrConv() and a
>>look-up table to find names with these different kinds of
>>capitalizations, i.e. McDonald, O'Brien, Smith-Jones, van den Steen,
>>etc.,
>>or .....
>>manually search and change these relatively few oddball
>>miss-capitalizations.
>>
>>Be aware, also, that sometimes the same name can be capitalized
>>differently. McDaniels and Mcdaniels are both correct.
>>
>>Of course the best method is correct data entry. <g>
>>
>>--
>>Fred
>>Please respond only to this newsgroup.
>>I do not reply to personal e-mail

>
>
Thank you Fred for your help, but, unfortunately, I am not a clever
boy in Microsoft Access. Even I am not a professional IT or
professional programmer, or such like that. I have designed a database
to supply the needs of a Small Office. When we started using the
database, I have noticed that people was typing customer names in an
innadequate way: capitalized. So, if you could, explicitly, show me
the code, it could be better for me understant and implement it.
>
Best regards.
>
Jamenson Ferreira Espindula
Recife - Pernambuco - Brazil.


This is what I've done in the past. When a person enters data into a
name field, within a form, I will it compare to proper case. If the two
don't match, I convert it to proper case. After that, I leave it alone.
If a person "fixes" the proper case it was because he/she
wanted/needed to or is a bonehead.

I create a variable in the declarations section of a form's module
Dim blnName As Boolean

In the OnCurrent event I'll set the value of the variable. If the
namefield has a value, it's set to true
blnName = (IsNull(Me.YourNameField))

In the AfterUpdate event of NameField I have code similar to
If not blnName then
'it was an empty name field. 3 = vbProperCase
If Me.YourNameField <StrConv(Me.YourNameField,3) then
Me.YourNameField = StrConv(Me.YourNameField,3)
msgbox "The name field was propercased."
blnName = True
Endif
Endif

If the person get's the message, they can adjust without warning afterwards.

Lambada
http://www.youtube.com/watch?v=5AfTl5Vg73A


Michael Gramelspacher's Avatar
Michael Gramelspacher
Guest
n/a Posts
July 7th, 2008
12:45 AM
#5

Re: String manipulation
In article <ac7c3567-932a-4db2-90a4-708c75cd61e9@
79g2000hsk.googlegroups.com>, Join Bytes! says...
Quote:
Originally Posted by
On 4 jul, 20:01, fredg <fgutk...@example.invalidwrote:
Quote:
Originally Posted by
On Fri, 4 Jul 2008 15:48:50 -0700 (PDT), Jamenson wrote:
Quote:
Originally Posted by
Hi everyone!

Quote:
Originally Posted by
I want to convert strings like "LEONARDO DI CAPRIO" to "Leonardo di
Caprio". The function StrConv converts to "Leonardo Di Caprio" and we
think it is innapropriated.

Quote:
Originally Posted by
Any help appreciated.

Quote:
Originally Posted by
Thank you!


You'll have to create a User Defined Function using StrConv() and a
look-up table to find names with these different kinds of
capitalizations, i.e. McDonald, O'Brien, Smith-Jones, van den Steen,
etc.,
or .....
manually search and change these relatively few oddball
miss-capitalizations.

Be aware, also, that sometimes the same name can be capitalized
differently. McDaniels and Mcdaniels are both correct.

Of course the best method is correct data entry. <g>

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail

>
Thank you Fred for your help, but, unfortunately, I am not a clever
boy in Microsoft Access. Even I am not a professional IT or
professional programmer, or such like that. I have designed a database
to supply the needs of a Small Office. When we started using the
database, I have noticed that people was typing customer names in an
innadequate way: capitalized. So, if you could, explicitly, show me
the code, it could be better for me understant and implement it.
>
Best regards.
>
Jamenson Ferreira Espindula
Recife - Pernambuco - Brazil.
>


I think you will have a rough time converting this string, because you
are not separating the first name and the last name. There should be a
table column for first name and another column for last name. Often
there
are also columns for middle name, title and suffix.

Dr. | Jameson | Ferreira | Espindua | M.D.

Private Sub txt_last_name_AfterUpdate()
If Not IsNull(Me.txt_last_name) Then
Me.txt_last_name = ProperCase(Me.txt_last_name)
End If
End Sub

Note that this function is not my code. You should be able to google for
the referenced message.

'===
Function ProperCase(ByVal strName As String) As String

' Function mConvSN is from Michael Rochler,
' microsoft.publip.access.formscoding, 3 Jul 2000

Dim strOriginal As String
Dim intIsSame As Integer

strOriginal = strName ' save original name
strName = mConvSN(strName) ' convert to proper case
ProperCase = strOriginal ' this if the default value

' next 2 lines for testing only
'intIsSame = StrComp(strName, strOriginal, 0)
'Debug.Print strName, strOriginal, intIsSame

If StrComp(strName, strOriginal, 0) Then
If MsgBox("Change " & strOriginal & " to " & strName & "?", _
vbYesNo + vbQuestion, "Entry changed!") = vbYes Then
ProperCase = strName
End If
End If
End Function

'-----------------------------------------------------------
Public Function mConvSN(ByVal varTxt As Variant) As Variant
'-----------------------------------------------------------
' this is part of ProperCase

On Error GoTo Err_mConvSN
Static astrPrefix(14) As String 'I changed this number
Dim strPatt As String
Dim iNdx As Integer
Dim iPos As Integer
Dim bOK As Integer

' initialize
mConvSN = vbNullString
varTxt = Trim(varTxt)
If mChkIsNothing(varTxt) Then Exit Function

' initialize array
InitArray_mConvSN:
astrPrefix(0) = "D' "
astrPrefix(1) = "D'"
astrPrefix(2) = "Da "
astrPrefix(3) = "De La "
astrPrefix(4) = "De "
astrPrefix(5) = "Du "
astrPrefix(6) = "La "
astrPrefix(7) = "Le "
astrPrefix(8) = "Van Den "
astrPrefix(9) = "Van Der "
astrPrefix(10) = "Van "
astrPrefix(11) = "Von Den "
astrPrefix(12) = "Von Der "
astrPrefix(13) = "Von "
astrPrefix(14) = "Di "

GoSub Proper_mConvSN
GoSub Foreign_mConvSN
GoSub Scottish_mConvSN
GoSub Hyphenated_mConvSN
GoSub Apostrophe_mConvSN
mConvSN = varTxt

On Error GoTo 0
Exit Function 'mConvSN

'-------------------------------------------------

'Doc_mConvSN: 'Documentation; not actually called.
'PURPOSE:
'Convert surname to proper case, but also handle correctly standard
'surname prefixes such as "von der", "de la", etc. Calling routine
'should take measures to check whether spelling is unchanged, but
'capitalisation has changed, in which case user is not happy with
'suggested surname prefix and has overridden it (perhaps because it
'should be Anglicised).

'IN:
' varTxt - The surname to be automatically converted.
'OUT:
' - Function returns converted surname.

'EXAMPLES:
' mConvSN ("roCHLER") returns "Rochler"
' mConvSN (" roCHLER ") returns "Rochler"
' mConvSN("VON DER BORCH") returns "von der Borch"
' mConvSN("FOTHERINGTON-THOMAS") returns "Fotherington-Thomas"
' mConvSN ("MACDONALD") returns "Macdonald"
' mConvSN("MCINTYRE") returns "McIntyre"
' mConvSN ("o'conNOR") returns "O'Connor"
' mConvSN ("de LA forge") returns "de la Forge"
'Doc_mConvSN

'------------
Err_mConvSN:
MsgBox "Sorry, an error has occurred." & vbCrLf & _
"Error number: " & Err.Number & vbCrLf & "Error: " & _
Err.Description, vbCritical & vbOKOnly, "Error"
Resume Next
'Err_mConvSN

'------------------
Apostrophe_mConvSN:
'Surnames like O'Connell.
If varTxt Like "*'*" Then
iPos = InStr(2, varTxt, "'", 1)
If iPos 0 Then varTxt = Left(varTxt, iPos) & _
UCase(Mid(varTxt, iPos + 1, 1)) & _
Right(varTxt, Len(varTxt) - iPos - 1)
End If
Return 'Apostrophe_mConvSN

'---------------
Foreign_mConvSN:
'Find and convert foreign prefixes to lower case.
For iNdx = 0 To 14
strPatt = astrPrefix(iNdx) & "*"
If varTxt Like strPatt Then
varTxt = LCase(astrPrefix(iNdx)) & _
Right(varTxt, Len(varTxt) - Len(astrPrefix(iNdx)))
Exit For
End If
Next iNdx
Return 'Foreign_mConvSN:

'-------------------
Hyphenated_mConvSN:
'Hyphenated surnames like Bindon-Howell
' or Fotherington-Thomas.
If varTxt Like "*-*" Then
iPos = InStr(2, varTxt, "-", 1)
If iPos 0 Then varTxt = Left(varTxt, iPos) & _
UCase(Mid(varTxt, iPos + 1, 1)) & _
Right(varTxt, Len(varTxt) - iPos - 1)
End If
Return 'Hyphenated_mConvSN

'-----------------
Proper_mConvSN:
'Convert every word to a l/c word beginning with initial
'u/c character.
varTxt = StrConv(varTxt, vbProperCase)
Return 'Proper_mConvSN:

'-----------------
Scottish_mConvSN:
'Scottish: Leave Macdonald alone, but adjust Mc* names like McKay.
If varTxt Like "Mc*" Then varTxt = "Mc" & _
UCase(Mid(varTxt, 3, 1)) & Right(varTxt, Len(varTxt) - 3)
Return 'Scottish_mConvSN

End Function 'mConvSN

'---------------------------------------------------------
Function mChkIsNothing(ByVal varVal As Variant) As Integer
'---------------------------------------------------------
' this is part of properCase

On Error Resume Next

mChkIsNothing = False
Select Case VarType(varVal)
Case vbEmpty, vbNull
mChkIsNothing = True
Case vbString
If Len(varVal) = 0 Then mChkIsNothing = True
Case Else
End Select
End Function 'mChkIsNothing


Larry Linson's Avatar
Larry Linson
Guest
n/a Posts
July 7th, 2008
07:55 PM
#6

Re: String manipulation
Steve/Mark/Michael/<other aliases>, you're at it again. Buzz off. Stop
spamming. Others have indicated the task is non-trivial; you don't need to
scare the poster into hiring you. We're going to make sure that posters
know you post incorrect answers, and they aren't going to hire you -- even
at "reasonable rates", you are angling for a lifetime job on this one,
aren't you?

Dear Original Poster: Michael and Mark are aliases for Steve, a spamming
troll who posts here and tries to solicit business "at very reasonable
rates" but the solutions he posts here are often wrong, or incomplete
(perhaps so you will contact him and hire him to work out your problem), and
we'd recommend you avoid him like the plague.

Larry Linson
Microsoft Office Access MVP



Jamenson's Avatar
Jamenson
Guest
n/a Posts
July 7th, 2008
08:45 PM
#7

Re: String manipulation
On 6 jul, 21:43, Michael Gramelspacher <grame...@psci.netwrote:
Quote:
Originally Posted by
In article <ac7c3567-932a-4db2-90a4-708c75cd61e9@
79g2000hsk.googlegroups.com>, jamensonespind...@hotmail.com says...
>
>
>
>
>
Quote:
Originally Posted by
On 4 jul, 20:01, fredg <fgutk...@example.invalidwrote:
Quote:
Originally Posted by
On Fri, 4 Jul 2008 15:48:50 -0700 (PDT), Jamenson wrote:
Hi everyone!

>
Quote:
Originally Posted by
Quote:
Originally Posted by
I want to convert strings like "LEONARDO DI CAPRIO" to "Leonardo di
Caprio". The function StrConv converts to "Leonardo Di Caprio" and we
think it is innapropriated.

>
Quote:
Originally Posted by
Quote:
Originally Posted by
Any help appreciated.

>
Quote:
Originally Posted by
Quote:
Originally Posted by
Thank you!

>
Quote:
Originally Posted by
Quote:
Originally Posted by
You'll have to create a User Defined Function using StrConv() and a
look-up table to find names with these different kinds of
capitalizations, i.e. McDonald, O'Brien, Smith-Jones, van den Steen,
etc.,
or .....
manually search and change these relatively few oddball
miss-capitalizations.

>
Quote:
Originally Posted by
Quote:
Originally Posted by
Be aware, also, that sometimes the same name can be capitalized
differently. McDaniels and Mcdaniels are both correct.

>
Quote:
Originally Posted by
Quote:
Originally Posted by
Of course the best method is correct data entry. <g>

>
Quote:
Originally Posted by
Quote:
Originally Posted by
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail

>
Quote:
Originally Posted by
Thank you Fred for your help, but, unfortunately, I am not a clever
boy in Microsoft Access. Even I am not a professional IT or
professional programmer, or such like that. I have designed a database
to supply the needs of a Small Office. When we started using the
database, I have noticed that people was typing customer names in an
innadequate way: capitalized. So, if you could, explicitly, show me
the code, it could be better for me understant and implement it.

>
Quote:
Originally Posted by
Best regards.

>
Quote:
Originally Posted by
Jamenson Ferreira Espindula
Recife - Pernambuco - Brazil.

>
I think you will have a rough time converting this string, because you
are not separating the first name and the last name. *There should be a
table column for first name and another column for last name. Often
there
are also columns for middle name, title and suffix.
>
Dr. *| *Jameson *| *Ferreira *| Espindua *| *M.D.
>
Private Sub txt_last_name_AfterUpdate()
* *If Not IsNull(Me.txt_last_name) Then
* * * Me.txt_last_name = ProperCase(Me.txt_last_name)
* *End If
End Sub
>
Note that this function is not my code. You should be able to google for
the referenced message.
>
'===
Function ProperCase(ByVal strName As String) As String
>
* *' Function mConvSN is from Michael Rochler,
* *' microsoft.publip.access.formscoding, 3 Jul 2000
>
* *Dim strOriginal As String
* *Dim intIsSame As Integer
>
* *strOriginal = strName * * * ' save original name
* *strName = mConvSN(strName) *' convert to proper case
* *ProperCase = strOriginal * *' this if the default value
>
* *' next 2 lines for testing only
* *'intIsSame = StrComp(strName, strOriginal, 0)
* *'Debug.Print strName, strOriginal, intIsSame
>
* *If StrComp(strName, strOriginal, 0) Then
* * * If MsgBox("Change " & strOriginal & " to " & strName & "?", _
* * * * *vbYesNo + vbQuestion, "Entry changed!") = vbYes Then
* * * * *ProperCase = strName
* * * End If
* *End If
End Function
>
'-----------------------------------------------------------
Public Function mConvSN(ByVal varTxt As Variant) As Variant
'-----------------------------------------------------------
' this is part of ProperCase
>
* * On Error GoTo Err_mConvSN
* * Static astrPrefix(14) As String *'I changed this number
* * Dim strPatt As String
* * Dim iNdx As Integer
* * Dim iPos As Integer
* * Dim bOK As Integer
>
* * ' initialize
* * mConvSN = vbNullString
* * varTxt = Trim(varTxt)
* * If mChkIsNothing(varTxt) Then Exit Function
>
* * ' initialize array
InitArray_mConvSN:
* * astrPrefix(0) = "D' "
* * astrPrefix(1) = "D'"
* * astrPrefix(2) = "Da "
* * astrPrefix(3) = "De La "
* * astrPrefix(4) = "De "
* * astrPrefix(5) = "Du "
* * astrPrefix(6) = "La "
* * astrPrefix(7) = "Le "
* * astrPrefix(8) = "Van Den "
* * astrPrefix(9) = "Van Der "
* * astrPrefix(10) = "Van "
* * astrPrefix(11) = "Von Den "
* * astrPrefix(12) = "Von Der "
* * astrPrefix(13) = "Von "
* * astrPrefix(14) = "Di "
>
* * GoSub Proper_mConvSN
* * GoSub Foreign_mConvSN
* * GoSub Scottish_mConvSN
* * GoSub Hyphenated_mConvSN
* * GoSub Apostrophe_mConvSN
* * mConvSN = varTxt
>
* * On Error GoTo 0
Exit Function 'mConvSN
>
'-------------------------------------------------
>
'Doc_mConvSN: 'Documentation; not actually called.
* * 'PURPOSE:
* * 'Convert surname to proper case, but also handle correctly standard
* * 'surname prefixes such as "von der", "de la", etc. Calling routine
* * 'should take measures to check whether spelling is unchanged, but
* * 'capitalisation has changed, in which case user is not happy with
* * 'suggested surname prefix and has overridden it (perhaps because it
* * 'should be Anglicised).
>
* * 'IN:
* * ' * varTxt - The surname to be automatically converted.
* * 'OUT:
* * ' * * * * *- Function returns converted surname.
>
* * 'EXAMPLES:
* * ' * mConvSN ("roCHLER") returns "Rochler"
* * ' * mConvSN (" * roCHLER *") returns "Rochler"
* * ' * mConvSN("VON DER BORCH") returns "von der Borch"
* * ' * mConvSN("FOTHERINGTON-THOMAS") returns "Fotherington-Thomas"
* * ' * mConvSN ("MACDONALD") returns "Macdonald"
* * ' * mConvSN("MCINTYRE") returns "McIntyre"
* * ' * mConvSN ("o'conNOR") returns "O'Connor"
* * ' * mConvSN ("de LA forge") returns "de la Forge"
'Doc_mConvSN
>
'------------
Err_mConvSN:
* * MsgBox "Sorry, an error has occurred." & vbCrLf & _
* * "Error number: " & Err.Number & vbCrLf & "Error: " & _
* * Err.Description, vbCritical & vbOKOnly, "Error"
* * Resume Next
'Err_mConvSN
>
'------------------
Apostrophe_mConvSN:
* * 'Surnames like O'Connell.
* * If varTxt Like "*'*" Then
* * * * iPos = InStr(2, varTxt, "'", 1)
* * * * If iPos 0 Then varTxt = Left(varTxt, iPos) & _
* * * * UCase(Mid(varTxt, iPos + 1, 1)) & _
* * * * Right(varTxt, Len(varTxt) - iPos - 1)
* * End If
Return 'Apostrophe_mConvSN
>
'---------------
Foreign_mConvSN:
* * 'Find and convert foreign prefixes to lower case.
* * For iNdx = 0 To 14 * * * *
* * * * strPatt = astrPrefix(iNdx) & "*"
* * * * If varTxt Like strPatt Then
* * * * * * varTxt = LCase(astrPrefix(iNdx)) & _
* * * * * * Right(varTxt, Len(varTxt) - Len(astrPrefix(iNdx)))
* * * * * * Exit For
* * * * End If
* * Next iNdx
Return 'Foreign_mConvSN:
>
'-------------------
Hyphenated_mConvSN:
* * 'Hyphenated surnames like Bindon-Howell
* * ' or Fotherington-Thomas.
* * If varTxt Like "*-*" Then
* * * * iPos = InStr(2, varTxt, "-", 1)
* * * * If iPos 0 Then varTxt = Left(varTxt, iPos) & _
* * * * UCase(Mid(varTxt, iPos + 1, 1)) & _
* * * * Right(varTxt, Len(varTxt) - iPos - 1)
* * End If
Return 'Hyphenated_mConvSN
>
'-----------------
Proper_mConvSN:
* * 'Convert every word to a l/c word beginning with initial
* * 'u/c character.
* * varTxt = StrConv(varTxt, vbProperCase)
Return 'Proper_mConvSN:
>
'-----------------
Scottish_mConvSN:
* * 'Scottish: Leave Macdonald alone, but adjust Mc* names like McKay..
* * If varTxt Like "Mc*" Then varTxt = "Mc" & _
* * UCase(Mid(varTxt, 3, 1)) & Right(varTxt, Len(varTxt) - 3)
Return 'Scottish_mConvSN
>
End Function 'mConvSN
>
'---------------------------------------------------------
Function mChkIsNothing(ByVal varVal As Variant) As Integer
'---------------------------------------------------------
' this is part of properCase
>
* * On Error Resume Next
>
* * mChkIsNothing = False
* * Select Case VarType(varVal)
* * * * Case vbEmpty, vbNull
* * * * * * mChkIsNothing = True
* * * * Case vbString
* * * * * * If Len(varVal) = 0 Then mChkIsNothing = True
* * * * Case Else
* * End Select
End Function 'mChkIsNothing- Ocultar texto entre aspas -
>
- Mostrar texto entre aspas -


Great work boys! Thank you!

I will to analize and implement the solutions appointed here. After
tests, I will come back and tell you the result.

Thank you very much!

Michael Gramelspacher's Avatar
Michael Gramelspacher
Guest
n/a Posts
July 7th, 2008
10:25 PM
#8

Re: String manipulation
In article <Cnuck.1085$bn3.44@trnddc07>, Join Bytes! says...
Quote:
Originally Posted by
Steve/Mark/Michael/<other aliases>, you're at it again. Buzz off. Stop
spamming. Others have indicated the task is non-trivial; you don't need to
scare the poster into hiring you. We're going to make sure that posters
know you post incorrect answers, and they aren't going to hire you -- even
at "reasonable rates", you are angling for a lifetime job on this one,
aren't you?
>
Dear Original Poster: Michael and Mark are aliases for Steve, a spamming
troll who posts here and tries to solicit business "at very reasonable
rates" but the solutions he posts here are often wrong, or incomplete
(perhaps so you will contact him and hire him to work out your problem), and
we'd recommend you avoid him like the plague.
>
Larry Linson
Microsoft Office Access MVP
>
>
>

Larry, I am exactly who I say I am.
http://www.psci.net/gramelsp/gramelsp/

You owe me an apology.

Mike Gramelspacher, Jr.

Michael Gramelspacher's Avatar
Michael Gramelspacher
Guest
n/a Posts
July 8th, 2008
12:05 AM
#9

Re: String manipulation
It seems that Larry Linson, or someone inmpersonating him, believes that
I am an alias for Steve or Mark. However, I am exactly who I am. This
is my web page:

http://www.psci.net/gramelsp/gramelsp/Index.htm

My web address and email address have not changed since about 1996. It
seems like it would be a simple thing to discover who I am. There are
four Michael Gramelspachers in the United States that I am aware of; we
are only distantly related.

I am not a programmer. I am not a developer. My work in real life does
not involve computers. Access is a hobby.

Mike Gramelspacher, Jr.

Jamenson's Avatar
Jamenson
Guest
n/a Posts
July 13th, 2008
08:55 PM
#10

Re: String manipulation
I have studied and tested the solution shown by "Salad" (6, jul), but
unfortunatly it does not work like the post demand. I figure out that
it does as exactly the same as StrConv, so a name like "Jesus of
Nazareth" is converted to "Jesus Of Nazareth" and that shows
inapropriate. Am I making myself clear enough or not?

Thank you

Jamenson Ferreira Espindula.

Jamenson's Avatar
Jamenson
Guest
n/a Posts
July 13th, 2008
09:05 PM
#11

Re: String manipulation
Larry Linson

Thank you!

Salad's Avatar
Salad
Guest
n/a Posts
July 13th, 2008
09:25 PM
#12

Re: String manipulation
Jamenson wrote:
Quote:
Originally Posted by
I have studied and tested the solution shown by "Salad" (6, jul), but
unfortunatly it does not work like the post demand. I figure out that
it does as exactly the same as StrConv, so a name like "Jesus of
Nazareth" is converted to "Jesus Of Nazareth" and that shows
inapropriate. Am I making myself clear enough or not?
>

Sometimes human intervention is required.

In my example I string converted it to proper case and told the user
that I did so. The user can then change the data and from then on the
person can do whatever he likes.

To expect the computer to do everything is wishful thinking.
Quote:
Originally Posted by
Thank you
>
Jamenson Ferreira Espindula.


Jamenson's Avatar
Jamenson
Guest
n/a Posts
July 14th, 2008
04:35 PM
#13

Re: String manipulation
OK Salad. Thank you for your patience, but do not you agree we would
keep our minds open to such a solution?

Best regards

Jamenson Ferreira Espindula
Pernambuco - Brazil.

Salad's Avatar
Salad
Guest
n/a Posts
July 14th, 2008
05:45 PM
#14

Re: String manipulation
Jamenson wrote:
Quote:
Originally Posted by
OK Salad. Thank you for your patience, but do not you agree we would
keep our minds open to such a solution?
>
Best regards
>
Jamenson Ferreira Espindula
Pernambuco - Brazil.


I've never met a computer yet that mastered Mind Reading 101. If you
have the rules for doing so then you should build the foundation to
follow those rules. If it doesn't exist in the Access application you
need to roll your own. That's why computer programmers make big bucks.

lyle fairfield's Avatar
lyle fairfield
Guest
n/a Posts
July 14th, 2008
06:15 PM
#15

Re: String manipulation
Salad <oil@vinegar.comwrote in
news:avadnSsgksFeEubVnZ2dnUVZ_gqdnZ2d@earthlink.co m:
Quote:
Originally Posted by
I've never met a computer yet that mastered Mind Reading 101.


Professor Regular Expression is the Dean of the Mind Reading School.

 
Not the answer you were looking for? Post your question . . .
184,013 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
  • Didn't find the answer you were looking for?
    Post Your Question
  • Top Community Contributors