Skip to main content
Question

Formula to pull record ID from another table based on parameters

  • December 4, 2022
  • 0 replies
  • 371 views

I may be coming at this from the completely wrong direction, but I have two related tables and would like to create a field that pulls the correct record ID for a "vehicle assignment" that is associated with a "driving event". This formula isn't giving me any results, but I can't figure out where my thinking is going wrong. Happy to provide additional context, just not sure what is helpful.

If(
(
(
([Vehicle Assignment - Start Date]<[Date]) and
(([Vehicle Assignment - End Date]>[Date]) or
(IsNull([Vehicle Assignment - End Date]))))
),

(GetFieldValues(GetRecords("{9.EX.'"&[Vehicle OR P&P GPS #]&"'}", [_DBID_VEHICLE_ASSIGNMENTS]), 3))
)

------------------------------
Amy Christensen
------------------------------
This topic has been closed for replies.

MarkShnierYou
Forum|alt.badge.img+24
Can you explain more in words what you are trying to do here? Which Record ID are you trying to retrieve and in words how do we know which Record ID you want?

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