Discussions

Expand all | Collapse all

Total records linked to another table

  • 1.  Total records linked to another table

    Posted 02-15-2018 01:15
    Hi

    I use QuickBase to manage events. I wanted to know if there was a field that could be automated to show how many registrations one event has and then be able to work out how many free seats we have remaining. For example, a workshop we run has a capacity of six participants. So if we register four people a field can provide the answer that we have 2 remaining. 

    Your help is welcome!

    Julie


  • 2.  RE: Total records linked to another table

    Posted 02-15-2018 01:22
    This should be easy. Create a field (numeric) on the events table known as Capacity. This will be constant for that event.

    Then create a new summary field based on the Event-< Registration relationship known as total number of registrations.

    Then create a formula numeric field in the events table known as free seats which is [Capacity] - [Total number of Registrations].


  • 3.  RE: Total records linked to another table

    Posted 02-15-2018 01:26
    Hi Julie,

    A) You can in your event table you can have a Total Positions field with an integer value denoting the total capacity of participants for the event.
    B) You can then on your table for participants have a hidden formula integer field (called say [Used Position]) with the number "1" set as the value in the formula.
    C) Go to table to table relationships under your event table, under the master table (events) click add summary field and summarize the hidden integer formula field. call this [Total Used Positions] This will provide the total count of participants assigned to each task. 
    D) Create a new field called [Remaining Position] in the events table integer formula and put in the formula: [Total Positions]-[Total Used Positions]
    E) You can further limit the ability to create records once the positions are used up on each task but this requires a bit more work/scripting.

    hope this helps..

    Josh


  • 4.  RE: Total records linked to another table

    Posted 02-15-2018 04:18
    Thank you. Both were helpful!