I have 2 fields in a sub table I need to move them to the main table with
their contents.
Is this possible?
Thanks
Back up your data first.
Add 2 new fields to the main table.
Then run an update query:
Add both tables to the query grid using the Show Table dialog.
Make sure the join is correct.
Then drag the SubTable fields onto the grid, Then the new MainTable
fields. Then in the new field's Update To: line write the SubTable
table and field name. When done, the SQL should look something like
this (with your actual table and field names):
UPDATE MainTable INNER JOIN SubTable ON MainTable.ID = SubTable.ID SET
[MainTable].[AddedField1] = [SubTable].[Field1],
[MainTable].[AddedField2] = [SubTable].[Field2];
Verify that the update is done correctly, then delete the unwanted
fields from the subtable.