igotit Posted December 12, 2007 Posted December 12, 2007 Hi Guys, I have an "ItemNumber" field and some of the number & letters were entered with spaces. Like "P 335 H2" instead of "P335H2" and the spaces are not always in the same places. How can I take out all spaces? Thanks for your help, Milo
igotit Posted December 12, 2007 Author Posted December 12, 2007 Hi Genx and how are you doing? I see the "Substitute( ItemNbr ; " " ; "" )" but where do I put it? In the calculated Value of the field? If so what do I do with the following calc that's already there? "Case(IsEmpty(ItemNbr); TextColor ( "Enter Info..." ; RGB ( 127 ; 127 ; 127 ) ); TextColor ( ItemNbr ; RGB ( 0 ; 0 ; 0 ) ))" Also, my "ItemNumber" field is a Number field. When I use "Substitute( ItemNbr ; " " ; "" )" will that also strip out the letters that are in the ItemNbr field? Milo
David Jondreau Posted December 12, 2007 Posted December 12, 2007 1) To get all future records showing right, change the calc to: Case(IsEmpty(ItemNbr); TextColor ( "Enter Info..." ; RGB ( 127 ; 127 ; 127 ) ); TextColor ( [color:red]Substitute(ItemNbr [color:red]; " "; "") ; RGB ( 0 ; 0 ; 0 ) )) 2) To get all the current records correct, Show All Records and Replace Field Contents with GenX's calc.
Recommended Posts
This topic is 6251 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now