dbTalk Databases Forums  

Merging two fields into one?

comp.databases.filemaker comp.databases.filemaker


Discuss Merging two fields into one? in the comp.databases.filemaker forum.



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

Default Merging two fields into one? - 06-17-2007 , 07:46 AM






I am not sure if that is the right operation here but I have a field called
"number" that stores the address number of a property and a field called
"name" that stores the name of the street. I want to merge them together in
another field but am unsure how that works.

I am sure it is simple but I am very new to FM 8.5 so I am just feeling my
way around.

Thanks to all
AJ


Reply With Quote
  #2  
Old   
Christoph Kaufmann
 
Posts: n/a

Default Re: Merging two fields into one? - 06-17-2007 , 08:35 AM






firecop1 <ajb5540 (AT) optonline (DOT) net> wrote:

Quote:
I am not sure if that is the right operation here but I have a field called
"number" that stores the address number of a property and a field called
"name" that stores the name of the street. I want to merge them together in
another field but am unsure how that works.
If you only want to display the number and the name, you can put them on
the layout using the "insert" menu, or just type them like this:
<<fieldname>>.

In order to merge them, you will have to use a calc field with text
result. The calculation may look like this:
number & " " & name


--
http://clk.ch


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

Default Re: Merging two fields into one? - 06-17-2007 , 12:06 PM



In article <1hzuz82.e3wqiw1jv1w4kN%clk (AT) freesurf (DOT) ch>
clk (AT) freesurf (DOT) ch(Christoph Kaufmann) wrote:

Quote:
firecop1 <ajb5540 (AT) optonline (DOT) net> wrote:

I am not sure if that is the right operation here but I have a
field called "number" that stores the address number of a property
and a field called "name" that stores the name of the street. I want
to merge them together in another field but am unsure how that works.

If you only want to display the number and the name, you can put
them onthe layout using the "insert" menu, or just type them like
this:
fieldname>>.

In order to merge them, you will have to use a calc field with
textresult. The calculation may look like this:
number & " " & name


Use Replace Field Contents to concatenate the two into a single field
in one swoop:
Choose whichever field you want as destination.

Under menu Records, select Replace Field Contents.

Select the "Replace with Calculated Result" option.

Enter the calculation:

YourNumberField & " " & YourStreetNameField

Click OK, etc.

Done.

Matt




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.