I finally got it... figured out what I was doing wrong. In my query, I had the "Smartcase" and "Correctname" switched for first and last name. Once I made both using "Correctname" worked great. I also added this
to correct the letter after the "Mac" if it should be capitalized.
So if anyone else could use it, feel free: "I just modified the original Mac if statement"
'Look for and fix "Mac"
'If InStr(1, strName, "Mac") Then
'strName = Left(strName, InStr(1, strName, "Mac") - 1) & "Mac" & _
'StrConv(Mid(strName, InStr(1, strName, "Mac") + 3), vbProperCase)
'End If
'Look for and fix "Maca"
If InStr(1, strName, "Maca") Then
strName = Left(strName, InStr(1, strName, "Maca") - 1) & "Mac" & _
StrConv(Mid(strName, InStr(1, strName, "Maca") + 3), vbProperCase)
End If
'Look for and fix "Macl"
If InStr(1, strName, "Macl") Then
strName = Left(strName, InStr(1, strName, "Macl") - 1) & "Mac" & _
StrConv(Mid(strName, InStr(1, strName, "Macl") + 3), vbProperCase)
End If
'Look for and fix "Macm"
If InStr(1, strName, "Macm") Then
strName = Left(strName, InStr(1, strName, "Macm") - 1) & "Mac" & _
StrConv(Mid(strName, InStr(1, strName, "Macm") + 3), vbProperCase)
End If
'Look for and fix "Macn"
If InStr(1, strName, "Macn") Then
strName = Left(strName, InStr(1, strName, "Macn") - 1) & "Mac" & _
StrConv(Mid(strName, InStr(1, strName, "Macn") + 3), vbProperCase)
End If
Works great now. If I see a name that is added later that requires the change. I will just make another IF statement.
Thanks guys for all your help. I am sssssslllllloooooowwwwwwwlllllllllyyyy getting this.
