MS Access problem

GEC: Discuss gaming, computers and electronics and venture into the bizarre world of STGODs.

Moderator: Thanas

Post Reply
User avatar
Ted C
Sith Marauder
Posts: 4486
Joined: 2002-07-07 11:00am
Location: Nashville, TN
Contact:

MS Access problem

Post by Ted C »

Yeah, yeah... I know... I'm a slave to the evil empire. It's what I've got to work with.

So...

I need to compare a couple of string values to see if they contain the same characters, and I don't know of any function that will do it, so I'm appealing to the techies here.

Here are some examples of what I mean:

"ABCDE" = "ABCDE"
"ABCDE" = "CDEAB"
"ABCDE" <> "ABDEF"
"ABCDE" <> "ABC"

So what I need is a way to compare the characters contained in the string without regard to the order in which they appear. Is there a reasonably easy way to do that?
"This is supposed to be a happy occasion... Let's not bicker and argue about who killed who."
-- The King of Swamp Castle, Monty Python and the Holy Grail

"Nothing of consequence happened today. " -- Diary of King George III, July 4, 1776

"This is not bad; this is a conspiracy to remove happiness from existence. It seeks to wrap its hedgehog hand around the still beating heart of the personification of good and squeeze until it is stilled."
-- Chuck Sonnenburg on Voyager's "Elogium"
Post Reply