I have an append query which is tied to the OnClick event of a button on my form. I want the query to run only if the values of either of 2 fields is updated on the form; the 'Location' field or the 'Assigned To' field.
i.e. if the value of the 'Location' field is changed, or if the value of the 'AssignedTo' field is changed, then the query should run.
The query should also run if both fields have been updated.
The query code is below:
Please help. Thanks.
i.e. if the value of the 'Location' field is changed, or if the value of the 'AssignedTo' field is changed, then the query should run.
The query should also run if both fields have been updated.
The query code is below:
Code:
INSERT INTO AssetMovement ( ID, Location, Condition, AssignedTo, AssetTag ) SELECT Assets.ID, Assets.Location, Assets.Condition, Assets.AssignedTo, Assets.AssetTag FROM Assets WHERE ID = Forms!AssetsDesktop!txtID;
Comment