G
Guest
I understand that if you have a main/subform, you can capture what the main
form's ID is if there is a master/child link field. However, for a variety
of reasons, I have to do my own manual insertion of data, which doesn't make
use of the main/subform design.
Here is the scenario:
tblStatus with Autonumber as primary key
Some but not all of the records in tblStatus will have additional details
that is stored in tblDetail.
I would like to store the corresponding ID from tblStatus in tblDetail to
establish the relationship.
But since I am inserting the record in tblStatus manually using INSERT INTO
statement, how do I know what the ID is when I create the record in tblDetail?
Can anyone make a suggestion? Should I change the structural design of
either tables? Main/subform might be the easiest solution but I am hoping
there are other ways around it.
form's ID is if there is a master/child link field. However, for a variety
of reasons, I have to do my own manual insertion of data, which doesn't make
use of the main/subform design.
Here is the scenario:
tblStatus with Autonumber as primary key
Some but not all of the records in tblStatus will have additional details
that is stored in tblDetail.
I would like to store the corresponding ID from tblStatus in tblDetail to
establish the relationship.
But since I am inserting the record in tblStatus manually using INSERT INTO
statement, how do I know what the ID is when I create the record in tblDetail?
Can anyone make a suggestion? Should I change the structural design of
either tables? Main/subform might be the easiest solution but I am hoping
there are other ways around it.