dbTalk Databases Forums  

Removing extra spaces in records

comp.databases.filemaker comp.databases.filemaker


Discuss Removing extra spaces in records in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rick Altman
 
Posts: n/a

Default Removing extra spaces in records - 05-03-2007 , 12:50 PM






I imported an Excel file into FileMaker and didn't realize that many records
had excess trailing spaces. I could have fixed it easily in Excel, but I'm
not so confident in FM (8.5 Pro). Is there a simple script or S&R routine
that I can implement? Thanks...


Rick A.
Pleasanton CA



Reply With Quote
  #2  
Old   
Matt Wills
 
Posts: n/a

Default Re: Removing extra spaces in records - 05-03-2007 , 02:47 PM






On 05/03/2007 13:50:25 "Rick Altman" <rick.a (AT) NOSPAMaltman (DOT) com> wrote:

Quote:
I imported an Excel file into FileMaker and didn't realize that many
records had excess trailing spaces. I could have fixed it easily in
Excel, but I'm not so confident in FM (8.5 Pro). Is there a simple script
or S&R routine that I can implement? Thanks...

Rick A. Pleasanton CA

Trim function?

Matt


Reply With Quote
  #3  
Old   
Matt Wills
 
Posts: n/a

Default Re: Removing extra spaces in records - 05-03-2007 , 02:57 PM





On 05/03/2007 15:47:28 Matt Wills <I'm (AT) witz (DOT) end> wrote:

Quote:
On 05/03/2007 13:50:25 "Rick Altman" <rick.a (AT) NOSPAMaltman (DOT) com> wrote:

I imported an Excel file into FileMaker and didn't realize that many
records had excess trailing spaces. I could have fixed it easily in
Excel, but I'm not so confident in FM (8.5 Pro). Is there a simple
script or S&R routine that I can implement? Thanks...

Rick A. Pleasanton CA

Trim function?

Matt
Sorry. more specifically...

Select the field (theField).

Use Records/Replace Field Contents to replace the existing contents with a calculation:

Trim ( theField ).

This can also be scripted if you need to do it repeatedly.

Matt


Reply With Quote
  #4  
Old   
Helpful Harry
 
Posts: n/a

Default Re: Removing extra spaces in records - 05-03-2007 , 04:13 PM



In article <531557.OSYGPHQJ (AT) news (DOT) verizon.net>, Matt Wills
<I'm (AT) witz (DOT) end> wrote:

Quote:
On 05/03/2007 15:47:28 Matt Wills <I'm (AT) witz (DOT) end> wrote:

On 05/03/2007 13:50:25 "Rick Altman" <rick.a (AT) NOSPAMaltman (DOT) com> wrote:

I imported an Excel file into FileMaker and didn't realize that many
records had excess trailing spaces. I could have fixed it easily in
Excel, but I'm not so confident in FM (8.5 Pro). Is there a simple
script or S&R routine that I can implement? Thanks...

Rick A. Pleasanton CA

Trim function?

Matt

Sorry. more specifically...

Select the field (theField).

Use Records/Replace Field Contents to replace the existing contents with a
calculation:

Trim ( theField ).

This can also be scripted if you need to do it repeatedly.
It might be better to repeatedly smack users over the head whenever
they type in these extra spaces in the first place. ;o)

Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)


Reply With Quote
  #5  
Old   
Matt Wills
 
Posts: n/a

Default Re: Removing extra spaces in records - 05-03-2007 , 06:58 PM





On 05/03/2007 17:13:05 Helpful Harry <helpful_harry (AT) nom (DOT) de.plume.com> wrote:

Quote:
In article <531557.OSYGPHQJ (AT) news (DOT) verizon.net>, Matt Wills <I'm (AT) witz (DOT) end
wrote:

On 05/03/2007 15:47:28 Matt Wills <I'm (AT) witz (DOT) end> wrote:

On 05/03/2007 13:50:25 "Rick Altman" <rick.a (AT) NOSPAMaltman (DOT) com> wrote:

I imported an Excel file into FileMaker and didn't realize that many
records had excess trailing spaces. I could have fixed it easily in
Excel, but I'm not so confident in FM (8.5 Pro). Is there a simple
script or S&R routine that I can implement? Thanks...

Rick A. Pleasanton CA

Trim function?

Matt

Sorry. more specifically...

Select the field (theField).

Use Records/Replace Field Contents to replace the existing contents with
a calculation:

Trim ( theField ).

This can also be scripted if you need to do it repeatedly.

It might be better to repeatedly smack users over the head whenever they
type in these extra spaces in the first place. ;o)
Yeah, a little percussive persuasion sometimes does the trick.

M


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.