Usually, a lookup column looks like this - "Take the value stored in this lookup column, use it to find some information in another table, and then display the information from that table in this table."
I need to Take the value stored in this lookup table, use it to fill two separate tables depending on ordertype. If the order is type1 I fill table 2 if order is type 2 I fill table 3
I have a database with 3 tables:
Table 1:
ID autonumber primary key
ORDR (numeric value increases by 1)
Table 2: Oders printable info1
ID autonumber primary key
ORDR (linked to Table 1 )
Table 3: Oders printable info2
ID autonumber primary key
ORDR (linked to Table 1 )
It's a piece of a large dabase and hard to explain, but I have to enter specifinc information in Table 1 then with relationship enter that information in Table 2 or Table 3 depending on the order type. Table 2 and 3 hold other information that is used to generate a report. Table 1 provides start unique identifier increased by 1 like, ORDR-001, 002 003 etc.
I never have to enter or should I say link same order number from table1 to both. Would like to prevent it by acident too.
Do I need a junction table to make it work? Is there a better way to make it work?
Thanks.
I need to Take the value stored in this lookup table, use it to fill two separate tables depending on ordertype. If the order is type1 I fill table 2 if order is type 2 I fill table 3
I have a database with 3 tables:
Table 1:
ID autonumber primary key
ORDR (numeric value increases by 1)
Table 2: Oders printable info1
ID autonumber primary key
ORDR (linked to Table 1 )
Table 3: Oders printable info2
ID autonumber primary key
ORDR (linked to Table 1 )
It's a piece of a large dabase and hard to explain, but I have to enter specifinc information in Table 1 then with relationship enter that information in Table 2 or Table 3 depending on the order type. Table 2 and 3 hold other information that is used to generate a report. Table 1 provides start unique identifier increased by 1 like, ORDR-001, 002 003 etc.
I never have to enter or should I say link same order number from table1 to both. Would like to prevent it by acident too.
Do I need a junction table to make it work? Is there a better way to make it work?
Thanks.
Last edited: