Hello all,
I have been trying to find a way to update a specific record on one table when there is a change on one of my forms.
The form I have is a Client Form that has combo boxes for the worker(s) assigned. after update causes the worker ID to be updated, I would like to include in this event the a change to the that worker's record in the "Employee" table with the value of a specific field.
I have been trying to do it with DAO but cant seem to figure out the correct syntax that will call the table and find the record THEN update.
Additionally, I've been try to use the DoCmd.RunSQL in the event to "insert" into the table but this does not allow for finding a specific record, or at least Im not sure if it does.
I'd like to do this without entering a NEW Entry. I am familiar with the DAO syntax for creating NEW entries but not editing.
Any help would be GREATLY appreciated.
Thank you,
Tables:
CLIENTS
Fields: [WorkerName], [WorkerID]
EMPLOYEES
Fields: [Employee], [EmployeeID]
Tables JOINED by [EmployeeID]<->[WorkerID]
I want to capture the [Supervisor] field from the CLIENTS form on the Afterupdate event and ADD the value of that field to the EMPLOYEE Table for that specific record.
I have been trying to find a way to update a specific record on one table when there is a change on one of my forms.
The form I have is a Client Form that has combo boxes for the worker(s) assigned. after update causes the worker ID to be updated, I would like to include in this event the a change to the that worker's record in the "Employee" table with the value of a specific field.
I have been trying to do it with DAO but cant seem to figure out the correct syntax that will call the table and find the record THEN update.
Additionally, I've been try to use the DoCmd.RunSQL in the event to "insert" into the table but this does not allow for finding a specific record, or at least Im not sure if it does.
I'd like to do this without entering a NEW Entry. I am familiar with the DAO syntax for creating NEW entries but not editing.
Any help would be GREATLY appreciated.
Thank you,
Tables:
CLIENTS
Fields: [WorkerName], [WorkerID]
EMPLOYEES
Fields: [Employee], [EmployeeID]
Tables JOINED by [EmployeeID]<->[WorkerID]
I want to capture the [Supervisor] field from the CLIENTS form on the Afterupdate event and ADD the value of that field to the EMPLOYEE Table for that specific record.