Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deleting text from string

Status
Not open for further replies.

SpringK

MIS
Mar 14, 2005
5
US
I have a field in my invoicing table with values as follows

34 feet
145 feet
12345 feet

I need to be able to pull the numeric part of the field out so that I can use it in computations.

I've tried strA - Right(strA,5), but it doesn't work.

The 'space' and 'feet' is consistent with all the field values, but I do not know how long the number value will be.

Thanks for your help in advance.



 
Try the Val() function:

[tt]msgbox val(strA)[/tt]

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top