This is basically a leave tracker.
Table 1: Employee Details
- This table contains the start date of the employee and a column that computes the available leave credits they have accumulated.
- Column LEAVES is linked to Table 2 and should look up the duration of the leave request applied for while another field computes the remaining leave credits

Table 2: Leave Requests
- This table computes the duration of the leave applied for using the FROM and TO DATE. I've made the primary field an autonumber for a unique identifier.

I've created an automation that does the following:
- Trigger: When a record enters the view (meaning the a form has been submitted)
- Find Records: From Table 1 that matches the first and last name of the requestor
- Update Record: This is where I'm stuck. I want the Linked Field LEAVES in Table 1 to be updated with the Leave Application # so that it looks up and sums up the duration and automatically computes the number of leave credits left.

I keep getting the below error no matter what I try to tweak:

I am not very familiar with scripting. I've seen replies from @JonathanBowen and @kuovonne but I need more background in scripting to understand.
Is there no way to automatically update a linked field?
