Forum Discussion

Re: Formula to Pull a single record field from another table.

The Parent record will be a single record, the child records can be multiple. The child records are tied in the relationship via the record id of the parent. As for the max record ID there will be multiple parent records with child record(s), would the max still apply?



------------------------------
Colin Burns
------------------------------

3 Replies

  • ChayceDuncan's avatar
    ChayceDuncan
    Qrew Captain

    If your notes table is the child then yes, the max record ID will be the max Note Record ID of the notes related to that parent, that's the design of the relationship. So do the Max Record ID# of the notes and you have the RID of the most recent Notes entry that you can then point your formula query to. 



    ------------------------------
    Chayce Duncan
    ------------------------------
    • ColinBurns's avatar
      ColinBurns
      Qrew Member

      Got it thank you.



      ------------------------------
      Colin Burns
      ------------------------------
      • MarkShnier__You's avatar
        MarkShnier__You
        Icon for Qrew Legend rankQrew Legend

        Colin,

        A simpler way is to use a "Reverse Relationship".  The Parent table knows the Maximum of the Record ID# of the Children.  If you make a reverse relationship where one Child has many Parents and use the field best called say, [Record ID# of the Most Recent Note]  ... ie you summary max field. ... as the reference field on the right side for the reverse relationship, the you can "lookup" easily any fields you like up to the Parent such as the most recent note, who entered the note  ie the [Record Owner], the Date Created of the most recent note.



        ------------------------------
        Mark Shnier (Your Quickbase Coach)
        mark.shnier@gmail.com
        ------------------------------