I want to build a master/detail table for my transaction. The transactions i'm referring to are the Check Vouchers, Journal Vouchers, etc. Based on their existing structure, there can be the same transaction number for each type of transaction, say CV-00001 and can also have JV-00001. So i design the master table as follow:
MASTER TABLE
TableName: tblTransactions
Fields: Trans_Type, Trans_Num, Trans_Date
Primary Key: Name=priTransTypeNum, Columns=Trans_Type & Trans_Num, Unique=YEs, Ignore Nulls = No
DETAILS TABLE
TableName: tblTransDetails
Fields: AutoNum, Trans_Type, Trans_Num,EmpID, ReasonCode, Debit, Credit
Primary Key: Name=AutoNum
Indexes: Name=idxTransTypeNum Columns=Trans_Type & Trans_Num
When i tried to build the relationship, I noticed that the relationship type is not 'One-To-Many' but rather 'Indeterminate'.
How do i designed a master/detail table and build a One-To-Many relationship for the master and details table with a PrimaryKey containing 2 columns? Is this possible?
MASTER TABLE
TableName: tblTransactions
Fields: Trans_Type, Trans_Num, Trans_Date
Primary Key: Name=priTransTypeNum, Columns=Trans_Type & Trans_Num, Unique=YEs, Ignore Nulls = No
DETAILS TABLE
TableName: tblTransDetails
Fields: AutoNum, Trans_Type, Trans_Num,EmpID, ReasonCode, Debit, Credit
Primary Key: Name=AutoNum
Indexes: Name=idxTransTypeNum Columns=Trans_Type & Trans_Num
When i tried to build the relationship, I noticed that the relationship type is not 'One-To-Many' but rather 'Indeterminate'.
How do i designed a master/detail table and build a One-To-Many relationship for the master and details table with a PrimaryKey containing 2 columns? Is this possible?