I am trying to use an update query to copy 4 fields from the current record on a form to a different table. A command button will execute the query, as well as other commands, via a macro.
"Edit Patient" is the form which the user uses to navigate the main table
"Print Template" is the table that I would like to copy the data to
Here's what I have so far (which updates absolutely nothing):
UPDATE [Print Template] SET [Print Template].[First Name] = [Forms]![Edit Patient]![First Name], [Print Template].[Last Name] = [Forms]![Edit Patient]![Last Name], [Print Template].[D/A] = [Forms]![Edit Patient]![D/A], [Print Template].DOB = [Forms]![Edit Patient]![DOB];
No criteria are necessary. If the command button is clicked, I want the update to occur.
Where am I going wrong? (novice user here, so be gentle)
"Edit Patient" is the form which the user uses to navigate the main table
"Print Template" is the table that I would like to copy the data to
Here's what I have so far (which updates absolutely nothing):
UPDATE [Print Template] SET [Print Template].[First Name] = [Forms]![Edit Patient]![First Name], [Print Template].[Last Name] = [Forms]![Edit Patient]![Last Name], [Print Template].[D/A] = [Forms]![Edit Patient]![D/A], [Print Template].DOB = [Forms]![Edit Patient]![DOB];
No criteria are necessary. If the command button is clicked, I want the update to occur.
Where am I going wrong? (novice user here, so be gentle)