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 7296 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a solution with about 1800 records in it. I have just recently added a validation to 10 of the fields so that they can each have only 8 characters. Is there a way I can go through the existing records and find/remove the extra characters that were there before I created the validation? Does the Trim function do this?

Thanks.

Susan

Posted

You can loop through all records and test whether Length(field1) > 8 or Length(field2) > 8, etc.

Show All Records

Freeze Window

Go to Record/Request/Page [First]

Loop

If [Length(field1) > 8 or Length(field2) > 8 or ... or Length(field10) > 8]

Go to Record/Request/Page [Exit after last; Next]

Else

Omit Record

End If

Exit Loop If [not Status(CurrentFoundCount)]

End Loop

Go to Record/Request/Page [First]

Now you can manually navigate through the found set and remove extra characters as necessary. You could script the removal of extra characters, but it's safer if you verify the change visually.

This topic is 7296 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.