Page 1 of 1

trimming a field of type varchar

Posted: Wed Nov 17, 2010 3:02 pm
by srinivas Guduru
Hi

I have a field (column) of type varchar and values like below

$60000 cash
$3835.50 MRY SINGLE.

I want to populate like below

$6000
$3835.50

can any one suggest me the solution

Thanks
Srini

Posted: Wed Nov 17, 2010 3:03 pm
by chulett
Use the Field() function to take the first field from a space delimited string.

Posted: Wed Nov 17, 2010 3:15 pm
by srinivas Guduru
chulett wrote:Use the Field() function to take the first field from a space delimited string.
The length of the field may vary , because originally field type and length is varchar 254.

can you give me the function syntax

thanks

Srini

Posted: Wed Nov 17, 2010 3:53 pm
by vinothkumar
Field(columnname,' ',1)