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!

Negative numbers to Bracketed text 1

Status
Not open for further replies.

meagain

MIS
Nov 27, 2001
112
CA
Hi,

We need to convert numbers into a string, to include it in a comment, and when the number is a negative we want brackets around it vs a minus sign. Here's the current formula being used:

"KE"+CStr([numberfield1])+"-"+[textfield1]

So let's say the [numberfield1] = (2.00) and [textfield1]=hello
The result is KE-2-hello

We want a result of KE(2)-hello

If you know of a format formula we can apply to the CSTR(), would grealy appreciate your input.

Thank you,
LP

 
KE" & Format([numberfield1], "#;(#)") & "-" & [textfield1]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top