Field defining formula issue

Ask a Question related to FileMaker, Design and Development.

  1. #1

    Default Field defining formula issue

    How do you setup a simple database with only four fields



    Last name


    Middle Name


    First Name


    Age


    It will only allow me to have one field as a "unique field"


    I need all four to be taken together as one unique field so that I don't
    have two people in the database with the same identical information in
    all
    four fields.


    It is unlikely that I would have two different people who are identical
    in
    all four fields.

    Dr. CB
    Dr. Carleton Bradley Guest

  2. Similar Questions and Discussions

    1. Text Field Object - Line Spacing Issue/Bug?
      I am working on a Flash application (MX 2003/Win 2000) that uses a lot of Dynamic Text Field objects and loads text from external .txt files. After...
    2. Defining field value to exist when not other value
      I have a text field definition that I need to make either one value or another. When the record is created, I want it to be value 1, when the user...
    3. help: datavision formula using subtotal field
      Please, I am trying to make an formula in DataVision that divides a subtotal field into one report.row (in order to obtain an average), I have...
    4. a fun formula?
      Dear Listeners: Someone snet me a funny text a couple of days ago and just wondered if anybody here had already constructed a nice FMP formula to...
    5. Formula interpreter
      Hi everybody: Has somebody developed an arimethic formula interpreter using Informix Stored Procedure? If so, is the source code available? Luis...
  3. #2

    Default Re: Field defining formula issue

    "Dr. Carleton Bradley" <carleton_bradley@sbcglobal.net> wrote in message
    news:MPG.1a0b3c1e973be5ba989839@news.houston.sbcgl obal.net...
    > How do you setup a simple database with only four fields
    >
    >
    >
    > Last name
    >
    >
    > Middle Name
    >
    >
    > First Name
    >
    >
    > Age
    >
    >
    > It will only allow me to have one field as a "unique field"
    >
    >
    > I need all four to be taken together as one unique field so that I don't
    > have two people in the database with the same identical information in
    > all
    > four fields.
    >
    >
    > It is unlikely that I would have two different people who are identical
    > in
    > all four fields.
    >
    > Dr. CB
    Hello,

    One thing you could do is create an additional field, a calculation, that
    concatenates the 4 fields. Define the calculation as:

    First name & " " & Middle name & " " & Last name & " " & Age

    and specify the result as text. You should also turn indexing on (in storage
    options) so as to speed up find requests on that field.

    Then, you can find with an exclamation mark in that field, and this will
    give you the list of duplicates. Sort the found set by this calculation
    field and if the number of duplicates is not too large, you can manually
    delete one record out of every pair. If you're dealing with a large number
    of duplicates, though, you can use a script instead. Post again if you'd
    like more information on this.

    This method is for finding and removing duplicates in an existing record
    set. However, calculation field cannot be validated for uniqueness, so it
    doen't help in preventing the creation of a new duplicate (when adding a new
    record). Obviously, one could perform a find to see if a record allready
    exist before addind a new record, but there are also more sophisticated
    ways, that rely on scripting the creation of new records. Let me know if
    you'd like more information on these techniques.

    Good luck!

    Marc-André Paiement
    Montréal



    Marc-André Paiement Guest

  4. #3

    Default Re: Field defining formula issue

    Create a calc field, all_info. This should return text and be indexed:
    Last name & " " & Middle Name & " " & First Name & " " & Age

    Then create a self relationship:
    Relationship Name: Self.All_Info
    Relationship Files: test.fp5 :: test.fp5
    Relationship Fields: All_Info :: All_Info

    Then create the following field validation (calculation) to each of the four
    fiields:
    not isvalid( Self.All_Info::All_Info)

    In the validation calculation dialog, make sure that "Validate only if field
    has been modified" is NOT checked. Now, users can't create duplicate
    records based on the combination of those four fields. Hope this helps!

    -Mariano


    Mariano Peterson Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139