6 Replies Latest reply on Dec 2, 2011 9:40 AM by AngusWalker

    Joining Fields together



      Joining Fields together



      I come from an access background so I am trying to get my head around a few differences.

      My problem is I have a table of users with for example a UserID field / First Name / Last name / location etc

      I want to create a popup menu that uses the userID as the reference field but displays the full name of the user ie First and last name in the drop down. So I have tried a value list but am only able to pick 2 fields USerID + first name and can't edit to do more. I can do it several different ways in access but i can't find anything in knowledge base how to do it in FMP.

      Thanks in advance



        • 1. Re: Joining Fields together

          To show data from more than one field in the second column, define a calculation field in your users table that combines the data from these fields into a single block of text, then specify this field to be used in the second column of your value list.

          Having used Access myself, I can predict a certain level of frustration for you in using Filemaker. It doesn't do things near the same way so it takes some getting used to before you can "switch gears" mentally to get things going smoothly for you. And FileMaker's value lists don't offer anything close to the nice combo box options you can use with Access.

          • 2. Re: Joining Fields together

            worked a treat

            Not totally frustrated yet.



            • 3. Re: Joining Fields together

              Follow up bit

              have made the calculation field called 'wholeName' so the pop up menu has field 1 - UserID and field 2 - wholeName. If I want to sort the popup list by last name alphabetically how do I go about that.



              • 4. Re: Joining Fields together
                Aha! I had the same problem. For your WholeName field, concatenate it as LastName&","&FirstName and then simply sort by second field. If you can live with this it works. You end up with entries like "Smith,John" etc. Happy coding, RW
                • 5. Re: Joining Fields together



                  • 6. Re: Joining Fields together

                    Hi.  As a total filemaker virgin, I am trying to merge three files that I am importing from an Excel spreadsheet.  They are text fields of 256 characters each, hence the reason why I had to use three fields in Excel.  Now, I want to concatenate them permanently into one field.  They are too long to do so in Excel and I tried to follow the thread above and do it in fielmaker.  All seemed ok but nothing shows in the additional "Total text" field after I concatenated the three field entries, Text1, Text 2 and Text 3 into the new Total tex fields.  There are some 1000 records to import and concatenate.  Then ideally, I would get rid of the original text fields.


                    Thanks for any help.