OwenMorgan
6 years agoQrew Member
formula to link imported records previously unlinked
We are importing data from an old database and there was an awkward link between ITEMS and EVENTS that we want to maintain and improve on the new system.
An ITEM would be linked to an EVENT (one event may have many items - this relationship is defined in the new system with a link to a [RELATED EVENT] (numeric). Each event will have an [EVENT ID], [FILING CODE], [EVENT DATE]
However on the old system while each event had [EVENT ID], [FILING CODE], [DATE], the relationship was through the [FILING CODE] not [EVENT ID]
So each [ITEM ID] is connected to a [FILING CODE] and if there is an event the date will be stamped in the [FILING LOCATION] field.
I want to create a formula in my pre-import table that looks at the ITEM [FILING CODE] and [FILING LOCATION] and if the [FILING LOCATION] references a date to stamp the relevant [EVENT ID] in the [RELATED EVENT] field
So
Table: ITEM
Field: Related Event Import
Formula:
IF ITEM[FILING CODE] (is not blank), check EVENT[FILING LOCATION] for EVENT[EVENT ID]
where EVENTS[FILING CODE] & EVENTS[DATE] = ITEM[FILING CODE] & ITEM[FILING LOCATION]
and display [EVENT ID]
I've tried a few things but struggling with syntax and cross app references
Thanks in anticipation
------------------------------
Owen Morgan
------------------------------
An ITEM would be linked to an EVENT (one event may have many items - this relationship is defined in the new system with a link to a [RELATED EVENT] (numeric). Each event will have an [EVENT ID], [FILING CODE], [EVENT DATE]
However on the old system while each event had [EVENT ID], [FILING CODE], [DATE], the relationship was through the [FILING CODE] not [EVENT ID]
So each [ITEM ID] is connected to a [FILING CODE] and if there is an event the date will be stamped in the [FILING LOCATION] field.
I want to create a formula in my pre-import table that looks at the ITEM [FILING CODE] and [FILING LOCATION] and if the [FILING LOCATION] references a date to stamp the relevant [EVENT ID] in the [RELATED EVENT] field
So
Table: ITEM
Field: Related Event Import
Formula:
IF ITEM[FILING CODE] (is not blank), check EVENT[FILING LOCATION] for EVENT[EVENT ID]
where EVENTS[FILING CODE] & EVENTS[DATE] = ITEM[FILING CODE] & ITEM[FILING LOCATION]
and display [EVENT ID]
I've tried a few things but struggling with syntax and cross app references
Thanks in anticipation
------------------------------
Owen Morgan
------------------------------