Access Querry only part of a string

I am trying to build a function in access that would only select the last User Name.  Seperate by a ²

So this
TTRA²TTRA²TTRA
OCRJMR²OCRJMR²GYEYE55

Would return
TTRA
GYEYE55
garyrobbinsAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MacroShadowCommented:
Try this:
Function EE(strInput As String) As String
    Dim arr() As String
    arr = Split(strInput, "²")
    EE = arr(UBound(arr))
End Function

Open in new window

0
garyrobbinsAuthor Commented:
I am sorry Function might not be the right term.  I need something like whats below not as part of a macro.

Right([Columnt Name],8)

The user names is not always the same length which is what is throwing me off.
0
MacroShadowCommented:
Right([Columnt Name], Len([Columnt Name]) - InStrRev([Columnt Name], "²"))

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Rey Obrero (Capricorn1)Commented:
try this

mid([Column Name],  InStrRev([Column Name], "²")+1)
0
garyrobbinsAuthor Commented:
Perfect!!!! Thank you some much!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.