ST4RCUTTER
Registered User.
- Local time
- Yesterday, 23:55
- Joined
- Aug 31, 2006
- Messages
- 94
Here is the scenario. I am creating a database to track tasks. On the main table, tbl_tasks are the following fields:
tbl_tasks
*TaskID [autonumber]
TaskName [Text]
CreatedBy [Text]
RequestedBy [Number]
tbl_requestor
*RequestorID [autonumber]
FirstName [Text]
LastName [Text]
ContactNumber [Number]
Now, the child table is called tbl_requestor. The idea here is to store the requestor information only once for any given requestor. So this should be a 1-to-many relationship with the many side being on tbl_tasks. This requires a PK on the child table tbl_requestor and a non-unique FK on the parent table. In this case, RequestorID is related to RequestedBy. The problem becomes, you can't create a child without a parent. How should I go about setting up the form so the Child gets created first, and then the PK value is assigned to the field RequestedBy before the insert of the parent record? Is tbl_tasks really the "parent" in this relationship?
tbl_tasks
*TaskID [autonumber]
TaskName [Text]
CreatedBy [Text]
RequestedBy [Number]
tbl_requestor
*RequestorID [autonumber]
FirstName [Text]
LastName [Text]
ContactNumber [Number]
Now, the child table is called tbl_requestor. The idea here is to store the requestor information only once for any given requestor. So this should be a 1-to-many relationship with the many side being on tbl_tasks. This requires a PK on the child table tbl_requestor and a non-unique FK on the parent table. In this case, RequestorID is related to RequestedBy. The problem becomes, you can't create a child without a parent. How should I go about setting up the form so the Child gets created first, and then the PK value is assigned to the field RequestedBy before the insert of the parent record? Is tbl_tasks really the "parent" in this relationship?