How to identify a charector

iamraja5

Registered User.
Local time
Today, 08:58
Joined
Jun 2, 2006
Messages
11
Hi all
I have field Name called EMPNAME

The records like this,

Brian,Smith
Ray,Vernner
Ken,Ibrahim

Now I want to separete them as Firstname: Brain
How do I find the comma "," in a text?


thanks


:confused:
 
You will have to write a VBA function to do this. I have seen threads in the past talk about similar problems. Try searching for Pharsing text.
 
I serached and could not find any in the past threads...

Can't I do this in a single query?
 
Try rthis in your query


SELECT InStr([Yourfield],",")-1 AS pos, Trim(Left([Yourfield],[pos])) AS firstname, Len([Yourfield]) AS namlen,
Trim(Right([Yourfield],[namlen]-[pos]-1)) AS surname
FROM yourtable;
 
awsome, it workd....thank alot.

"For me you are the world"
 
RE:RE:How to identify a charector

Glad to be of help
 

Users who are viewing this thread

Back
Top Bottom