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

Calculate the sum of a varchar field containg numbers...

Status
Not open for further replies.

saramaia

Programmer
Aug 5, 2002
61
PT
Hi!

I have a field in my database table that is a varchar2 but will always contain numbers.

How can i sum this value, considering it´s type is varchar2???

Thank you

Sara
 
Hi !

Maybe this can help:

Create a formula like this:

if IsNumeric({YourField}) then
val({YourField})
else
0


Place the formula in your Detail section and then you can summarize it.

/Goran
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top