Prevost
Board Regular
- Joined
- Jan 23, 2014
- Messages
- 198
Hi There,
I am trying to run an update query using two tables, Table1 and Table2. I am updating a new field in Table2 to the correct ID number from Table1, using an existing field from Table2 (which also exists in Table1, the reason for just trying to get the ID number from Table1 and avoid redundant fields). I selected the Query Design and then selected an Update Query. I have both tables in the window. In the table where I enter the criteria for the update, I was thinking this would work (but doesn't)...
Field: UWFrameID
Table: Table2
Update To: Table1.ID
Criteria: [Table2].[UWFrameID] = [Table1].[ID]
or:
where UWFrameID is the field that I want to change in Table2 and I am trying to update it to the value from Table1.ID using the criteria that the existing field from Table2 matches the corresponding Table1 value.
Thanks in advance for any help/suggestions!
I am trying to run an update query using two tables, Table1 and Table2. I am updating a new field in Table2 to the correct ID number from Table1, using an existing field from Table2 (which also exists in Table1, the reason for just trying to get the ID number from Table1 and avoid redundant fields). I selected the Query Design and then selected an Update Query. I have both tables in the window. In the table where I enter the criteria for the update, I was thinking this would work (but doesn't)...
Field: UWFrameID
Table: Table2
Update To: Table1.ID
Criteria: [Table2].[UWFrameID] = [Table1].[ID]
or:
where UWFrameID is the field that I want to change in Table2 and I am trying to update it to the value from Table1.ID using the criteria that the existing field from Table2 matches the corresponding Table1 value.
Thanks in advance for any help/suggestions!