A new Quickbase user asked on the community forum about a common time sink. Staff log a service shift, then enter a client encounter for each person they saw on that shift, and they retype the same shift details on every encounter. They also had a form rule that set a Reporting Month field to "December 2026", but only when the date was in December, so it would need a new rule every month.
The original thread is here: How to have fields in form autofill with value based on a selection in a dropdown?
Both problems have a built-in fix. Shift details come from a parent/child relationship with lookup fields, and Reporting Month becomes a formula. I built both in a test app to check the steps and the formula output below.
How it fits together
The shift details are stored once, on the Shift. Each encounter stores only which shift it belongs to (the Related Shift field) and shows the rest through lookups. Fix a typo on the shift and every encounter on that shift shows the corrected value.
Step 1: Make Shifts the parent of Encounters
If you don't have a Shifts table yet, create one with the fields staff keep retyping. In my example that's Shift Date, Location and Outreach Worker.
- Open the Encounters table and go to Settings > Table-to-table relationships.
- Create a new relationship and choose Shifts as the parent ("one shift has many encounters").
- Quickbase adds a reference field to Encounters. Rename it to something clear like Related Shift. This is the field that becomes a dropdown of shifts on the encounter form.
Quickbase also adds an Encounters report link and an Add Encounter button to the Shift table, which you'll use in Step 3.
Step 2: Add the shift fields as lookups
Still on the relationship page, add a lookup field for each shift field you want on the encounter: Shift Date, Location, Outreach Worker, and so on. Quickbase names them after the parent, for example Shift - Location.
Lookups are read-only on the encounter. They always show whatever is on the linked shift, which is what you want for details that belong to the shift rather than the encounter.
In my test, three encounters linked to a Main Street Shelter shift all showed Location "Main Street Shelter" and Outreach Worker "Sarah Lee" without anyone typing either one.
Then add the lookup fields to the Encounter form (and reports) where staff need to see them, and remove the old typed-in copies once you've moved any existing data over.
Step 3: Add encounters from the shift
Add an embedded Encounters report to the Shift form if it isn't there already (in the form editor, add a report link / embedded report section for the Encounters relationship). It lists that shift's encounters with an Add Encounter button.
The day-to-day flow is now:
- Staff create the Shift once, with date, location and worker.
- From that shift's form, they click Add Encounter for each client.
- The new encounter opens with Related Shift already set, so the lookups are filled in. Staff only enter what's specific to that encounter, such as the client and notes.
If someone starts from a standalone encounter form instead, they pick the shift in the Related Shift dropdown and the lookups fill in from that shift. If the list of shifts gets long, change the reference field's display to something readable (such as date plus location) so people pick the right one.
When a value has to stay editable per encounter
Lookups can't be edited on the child record. If a value usually matches the shift but sometimes differs (say one client was seen at a different location), keep it as a regular field and pre-fill it from the lookup with a form rule:
- Keep the regular field, for example Location, and also put the lookup Shift - Location on the Encounter form. The lookup has to be on the form for the rule to read it. You can hide it with another rule or leave it read-only.
- Add a form rule:
- When the record is being added, and Shift - Location is not blank
- Then change Location to the value in the field Shift - Location
Form rules re-check as field values change, so this works both when the encounter comes from the Add Encounter button and when staff pick a shift from the Related Shift dropdown while adding. Because the rule only runs while the record is being added, later edits to Location are kept and opening the encounter again won't overwrite them.
Use this pattern only for the fields that really need it. Everything that should always match the shift is simpler as a plain lookup.
Fix the Reporting Month with a formula
The form rule approach needs a new rule for every month. A formula field follows the date automatically, so you can delete the rule.
- In Encounters, rename or retire the old Reporting Month field, then add a new field of type Formula - Text named Reporting Month.
- Use this formula, swapping in your date field's name:
NameOfMonth([Service Date]) & " " & ToText(Year([Service Date]))
A service date of 2026-12-03 gives December 2026, and 2026-01-14 gives January 2026.
Two things trip people up:
- Straight quotes only. Formulas copied from a forum post or a document often come with curly quotes (“ ”). Quickbase doesn't treat those as text quotes. When I pasted the curly version, it was rejected with a formula syntax error.
- Same field in both places. Both
NameOfMonth()andYear()should point at the same date field. If the date is a Date/Time field rather than a Date field, wrap it inToDate()first.
If encounters always happen on the shift date, you can point the formula at the Shift Date lookup instead of a separate Service Date.
Sorting and grouping by month
A text field sorts alphabetically, so the formula above puts April before December before January. In my test, sorting by Reporting Month returned April 2026, December 2026, January 2026.
If you'll sort or group by month, add a Formula - Date field:
FirstDayOfMonth([Service Date])
It returns the first day of the month (2026-12-03 becomes 2026-12-01), which sorts in calendar order. Keep the text field for display and sort on the date one.
You may not need an extra field for reports at all. In a report's sorting and grouping settings you can group a date field by month directly, so a report grouped on Service Date by month gives you monthly totals in calendar order.
Quick checklist
- Shifts is the parent, Encounters the child, linked by Related Shift.
- Shift details on Encounters are lookups, not typed fields.
- Staff add encounters from the Add Encounter button on the shift.
- Fields that must stay editable: regular field plus a "being added" form rule.
- Reporting Month is a Formula - Text field with straight quotes; sort or group with a date field.