Hi, hoping someone can help! I've got a web app, with three tables: Projects, Tasks and Staff.
In the tasks, there is a section for who the task is assigned to - a lookup value from the staff table. I have managed to successfully create a macro where on insert the email address of the person assigned to the task is found in the Staff table.
Look up record in Staff, where [staff].[id]=[Tasks].[Task Owner].
Set local var expression = [Staff].[Emil Address]
However, when i try to create a data macro to do the same elsewhere, it says it can't resolve the reference to Staff. Basically, i'm trying to do a similar thing in my Projects table, where if the project status is changed to completed (lookup value manually entered) an email is sent to all the Staff listed as stakeholders for that project.
Can anyone help?
In the tasks, there is a section for who the task is assigned to - a lookup value from the staff table. I have managed to successfully create a macro where on insert the email address of the person assigned to the task is found in the Staff table.
Look up record in Staff, where [staff].[id]=[Tasks].[Task Owner].
Set local var expression = [Staff].[Emil Address]
However, when i try to create a data macro to do the same elsewhere, it says it can't resolve the reference to Staff. Basically, i'm trying to do a similar thing in my Projects table, where if the project status is changed to completed (lookup value manually entered) an email is sent to all the Staff listed as stakeholders for that project.
Can anyone help?