dbTalk Databases Forums  

calculated field for text

comp.databases.filemaker comp.databases.filemaker


Discuss calculated field for text in the comp.databases.filemaker forum.



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

Default calculated field for text - 08-11-2005 , 07:56 AM






I have two fields in a FMP 7 db. One is LastName and the other is
FirstName. I would like to create a calculated field that will take the
Last Name and add to it the first letter of the First Name. John Doe would
become doej

Could someone get me started in this??

Thanks



Reply With Quote
  #2  
Old   
Remi-Noel Menegaux
 
Posts: n/a

Default Re: calculated field for text - 08-11-2005 , 09:05 AM






Name = LastName & " " & Left(FirstName, 1) & "."
Remi-Noel


"Stephen Larivee" <NOlariveeslSPAM (AT) yahoo (DOT) PLEASEcom> a écrit dans le
message de news: lKOdnZl9UMkK1mbfRVn-2g (AT) comcast (DOT) com...
Quote:
I have two fields in a FMP 7 db. One is LastName and the other is
FirstName. I would like to create a calculated field that will take
the Last Name and add to it the first letter of the First Name. John
Doe would become doej

Could someone get me started in this??

Thanks




Reply With Quote
  #3  
Old   
Jens Rasmussen
 
Posts: n/a

Default Re: calculated field for text - 08-11-2005 , 09:09 AM



Stephen Larivee <NOlariveeslSPAM (AT) yahoo (DOT) PLEASEcom> wrote:

Quote:
I have two fields in a FMP 7 db. One is LastName and the other is
FirstName. I would like to create a calculated field that will take the
Last Name and add to it the first letter of the First Name. John Doe would
become doej

Could someone get me started in this??

Thanks
MyCalcField = LastName & Left(FirstName;1)

Maybe you need a comma instead of semicolon to separate arg for the Left
function, depending on your language / region.

It shoud be that easy - hope it helps.
Jens


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

Default Re: calculated field for text - 08-11-2005 , 09:11 AM



Stephen Larivee wrote:

Quote:
I have two fields in a FMP 7 db. One is LastName and the other is
FirstName. I would like to create a calculated field that will take the
Last Name and add to it the first letter of the First Name. John Doe
would become doej

Could someone get me started in this??

Thanks
CombinedName = LastName & Left (FirstName ; 1 )

If you actually want it to be lower case all the way as you indicate in
your example, make it

CombinedName = Lower ( LastName & Left (FirstName ; 1 ) )

You'll find other examples in Help under Text functions.

Matt



Reply With Quote
  #5  
Old   
Stephen Larivee
 
Posts: n/a

Default Re: calculated field for text - 08-11-2005 , 09:13 AM



Thank you, all of you, for the help. Problem resolved!!!!


"Remi-Noel Menegaux" <rnmenegaux (AT) free (DOT) fr> wrote

Quote:
Name = LastName & " " & Left(FirstName, 1) & "."
Remi-Noel


"Stephen Larivee" <NOlariveeslSPAM (AT) yahoo (DOT) PLEASEcom> a écrit dans le
message de news: lKOdnZl9UMkK1mbfRVn-2g (AT) comcast (DOT) com...
I have two fields in a FMP 7 db. One is LastName and the other is
FirstName. I would like to create a calculated field that will take the
Last Name and add to it the first letter of the First Name. John Doe
would become doej

Could someone get me started in this??

Thanks






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.