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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reformatting data in a table 1

Status
Not open for further replies.

helphelen

Technical User
Feb 25, 2010
8
0
0
CA
Good afternoon - I have a table with dollar amounts in it that is for some reason being recognized as text. I am therefore unable to insert a summary and calculate the SUM because that option is unavailable to me. Is there any way to formal the data for it to be recognized as a number?
 
if the contents of the field are all numeric:
tonumber({yourtablename.yourfieldname})


otherwise you can test and only convert numeric values by using:
IF isnumeric({yourtablename.yourfieldname})
THEN tonumber({yourtablename.yourfieldname})
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top