Instr and Trim functions are perfectly explained in the ACCESS HELP (just press F1, perhaps after typing the command you are looking for to send help to that very page directly), I know its magic.
... I know you will be shocked, but I dont know VBA very well.. I actually know enough to be dangerous. ....
I do want to learn this stuff, but some of the sites I go to and some of the books I have bought havent really helped much.
..., but if you are aware of a good place to read/learn about this, I would appreciate your assistance.
Sorry not shocked at all, if you were a 100% proof full fledged expert you would not be comming to the forum looking for answers
I cannot help you on teaching though, I am 100% self tought (with the help of this forum among other resources like google)...
The subtracting of characters will help though....
What does this do??
left(InWord, InStr(InWord, " "))
More or less the same as...
left(InWord, 9)
would if InWord would contain "namliaM, ehT"
Now this returns: "namliaM, "
So how to get rid of the last 2 (the comma AND the space) characters??
Left(InWord, 7)
will return: "namliaM"
No space(s) no comma, thus...
left(InWord, 9-2)
is actually the same thing, now making this 100% flexible...
left(InWord, InStr(InWord, " ") - 2)
TADA
