2 Replies Latest reply on Jan 6, 2010 1:37 PM by benpwallis

    Auto populate a field when selection made in Drop Down List

    benpwallis

      Title

      Auto populate a field when selection made in Drop Down List

      Post

      FM PRO ADV 10.0V3

      Mac OS 10.6

       

      Hi,

       

      Sorry for probably what is a noob question but it is from a noob user!

       

      I have a drop down list and what I would like to do is set something up that when I select an option from the drop down list it will automatically fill another field in from another list.

       

      For example if I have the following in a drop down list

       

      Hardware Software

      Presales

       

      I want another field to automatically populate with predetermined fields ie if I select Hardware Software I want to call another field

       

      Hardware Software (selected from drop down)>Would call (All physical aspects of a device........) from another field.

       

      I beleive this can be done with creating a relationship to another table but I tried this and really could not fathom it.

       

      Any help would be greatly appreciated and if it could be explained in simple steps that would be great. Im technically minded but new to databases.

       

      Thanks

        • 1. Re: Auto populate a field when selection made in Drop Down List
          philmodjunk
            

          You have two options here and you'll have to decide which option is best for your needs: Both options require you to set up a relationship that uses the field you've formatted with your drop down list to link records between the two tables.

           

          Option 1: Physically copy the data from the other table. This is good when you don't want changes made to the other table to result in matching changes appearing in existing records in your main table. Looking up prices and sales tax rates from a related table are the typical examples of why you would set it up this way.

           

          Option 2: Simply refer (via the relationship) to the data in the other table. In this option, any changes made to the data in the other table automatically appear for all existing records as well as any future records. Updating customer info in a contacts table is one example where you might want to do it that way.

           

          Option 1 implementation:

           

          Create a matching data field in your main table. In field options, select either "looked up value" or "calculated value". Either option may be used to physically copy the data into your main table's data field. The calculation option allows you to make additional modifications to the data besides simply copying it.

           

          Option 2:

           

          Simply use the field tool to place a copy of the field from the other table on your data entry layout for your main table records. When you select a value in your drop down that matches a record in the other table, the data will automatically appear.

          • 2. Re: Auto populate a field when selection made in Drop Down List
            benpwallis
              

            PhilModJunk,

             

            Thanks so much for the quick reply Option 2 works the best for me and even better works a treat.... so simple!

             

            Thanks again!

             

            Ben