Ken,
Forgive the greenhorn questions but.
1. Do I need to maintain the old relationship when I'm populating the child
table.
2. Since the old relationship uses a composite key is the SQL syntax
....ParentTableName.OldPrimaryKeyFieldName1 and OldPrimaryKeyFieldName2?
Thanks for your help
> Was the child table set up with a relationship to the original primary key?
> If yes, then you can run an update query to populate the new "long integer"
[quoted text clipped - 17 lines]
> >
> > Any help in figuring this out will be appreciated.
Ken Snell - 31 Dec 2003 18:21 GMT
Answers inline....

Signature
Ken Snell
<MS ACCESS MVP>
> Ken,
>
> Forgive the greenhorn questions but.
>
> 1. Do I need to maintain the old relationship when I'm populating the child
> table.
No.
> 2. Since the old relationship uses a composite key is the SQL syntax
> ....ParentTableName.OldPrimaryKeyFieldName1 and OldPrimaryKeyFieldName2?
The SQL would look something like this:
UPDATE ChildTableName INNER JOIN ParentTableName
ON ChildTableName.OldKeyFieldName1 = ParentTableName.OldPrimaryKeyFieldName1
AND ChildTableName.OldKeyFieldName2 =
ParentTableName.OldPrimaryKeyFieldName2
SET ChildTableName.NewKeyFieldName = ParentTableName.PrimaryKeyFieldName;
> Thanks for your help
> > Was the child table set up with a relationship to the original primary
[quoted text clipped - 24 lines]
> > >
> > > Any help in figuring this out will be appreciated.