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

remove leading "-" 1

Status
Not open for further replies.

jomarelectric

IS-IT--Management
Jan 19, 2007
36
CA
cr10

hello, all.

i have a field that returns the value w/ a "-" preceeding the numbers in the field (to indicate a payment has been applied).

i'd like to strip this out. could someone please set me off in the right direction.

as always, thank you.
 
Is this a string field or a number field and the "-" is simply a negative sign?

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports

"A fine is a tax for doing wrong. A tax is a fine for doing well.
" - unknown
 
it's a number field and the "-" is a negative sign - you're right.

//frank
 
If it's a number field, all you need is a Abs() function.
 
Or you can format the field to have no negative symbol.

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports

"A fine is a tax for doing wrong. A tax is a fine for doing well.
" - unknown
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top