Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 6251 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.