In my form I have one button that when clicked upon opens a macro that updates 2 fields with related records between 2 tables. If possible I'm avoiding not to have to create 3 buttons that will open 3 different macros.
Table1 is the datasource and Table2 is the recordset collections (extracted data from Table1).
This one field in Table1 is represented by 3 fields in Table2 .
What I'm trying to accomplish is combined these 3 queries into one macro.
This is my SQL statement:
UPDATE DISTINCTROW ToolsList LEFT JOIN Layout ON ToolsList.Partnumber = Layout.txtCuttingToolID
SET ToolsList.Description = [Enter New Value], Layout.txtCuttingTools = [Enter New Value]
WHERE (((Layout.txtCuttingTools)=[Enter Old Value]));
Notes:
The highlighted text in blue is only one that is different from the 3 queries.
The user is being prompted only with 2 parameters which is the old value and the new value.
Thanks,