AmyChristensen1
2 years agoQrew Trainee
Formula to pull record ID from another table based on parameters
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
------------------------------
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
------------------------------