I have 2 tables
tblFunds
FundID (auto / PK)
FundNo (Text)
FundDescr (Text)
tblGrants
GrantID (auto / PK)
GrantNo (Text)
GrantDescr (Text)
Question 1: I have a 3rd table which includes fields of its own plus fields from other tables. Now I want to include FundNo and GrantNo in this 3rd table. A Grant Number can have more than one Fund numbers. I would like to restrict data entry into the 3rd table as such that it won't allow incorrect data. For example, Fund 872 belongs to Grant Number A1. If someone picks Grant A74 for fund 872 the DB will result in an error message. How do I do this?
Question 2: Do I need to add GrantID as an additional field to the tblFunds?
Question 3: Do I create another table called tblFundGrants with these fields:
tblFundGrants
RecordID (PK / auto)
FundID (FK)
GrantID (FK)
Question 4: Here is the tricky part. One fund can have more than one Grant Number.
Any help any one? Thanks.
tblFunds
FundID (auto / PK)
FundNo (Text)
FundDescr (Text)
tblGrants
GrantID (auto / PK)
GrantNo (Text)
GrantDescr (Text)
Question 1: I have a 3rd table which includes fields of its own plus fields from other tables. Now I want to include FundNo and GrantNo in this 3rd table. A Grant Number can have more than one Fund numbers. I would like to restrict data entry into the 3rd table as such that it won't allow incorrect data. For example, Fund 872 belongs to Grant Number A1. If someone picks Grant A74 for fund 872 the DB will result in an error message. How do I do this?
Question 2: Do I need to add GrantID as an additional field to the tblFunds?
Question 3: Do I create another table called tblFundGrants with these fields:
tblFundGrants
RecordID (PK / auto)
FundID (FK)
GrantID (FK)
Question 4: Here is the tricky part. One fund can have more than one Grant Number.
Any help any one? Thanks.
Comment