How to get onlthe first word in a text ?

Skerdi

Registered User.
Local time
Today, 19:10
Joined
Jun 27, 2007
Messages
47
Hi,
Can some1 tel me how to get only the first word in a text field where there are many words? The text field has many words but I need only the first (the first before the first space)

Thnx in adv.
 
Hi,
Can some1 tel me how to get only the first word in a text field where there are many words? The text field has many words but I need only the first (the first before the first space)

Thnx in adv.

Code:
Left$([FieldName],Instr(1,[FieldName]," ")-1)

This should do the trick.
 
Code:
Left$([FieldName],Instr(1,[FieldName]," ")-1)

This should do the trick.

Thnx DjKarl.
It gives an error at the first comma
:(
 
Try
Left([FieldName],Instr([FieldName]," ")-1)
 
Some region settings require the use of a semicolon ";" in stead of a comma.
 

Users who are viewing this thread

Back
Top Bottom