January 29, 200520 yr hi, I want to stop using repeats in order to get lots of data to 1 customer. How would i set up a relationship ( 1 to many ) between a tbl_customers and tbl_orders. So that a customer can have many orders?
January 29, 200520 yr Customer would have a primary key Customer_ID. Order would have a primary key Order_Number and a foreign key Customer_ID. You may want to go one more step. OrderLine with a primary key Line_Number and a foreign key Order_Number. The relationship between Customer & Order is based on Customer_ID. The relationship between Order & OrderLine is based on Order_Number.
January 29, 200520 yr You could go still further and have a Product table as well. See chapter 7 of Stars' Learn FileMaker Pro 7.
January 30, 200520 yr Author Thanks guys but i realised using a portal related to orders with only 5 rows limits each customer!
January 30, 200520 yr Add a scroll bar to the portal. That is the beauty of using related records, you can have as many as you want.
Create an account or sign in to comment