Ani
Registered User.
- Local time
- Today, 01:18
- Joined
- Mar 10, 2012
- Messages
- 196
Hello
Please help. I dont know quite what to do now.
I have created 5 tables
Tbl-CustomerDetails-Primary key autonumber
Tbl-HorseDetails -Primary key HorseID autonumber -with CustomerID as foreign key -Number
Tbl-PastureManagement - Primary/foreign key -HorseID - with CustomerID-number
Tbl-Invoice -Primary key -InvoiceId -autonumber with CustomerId as foreign key-Number
Tbl-Product -Primary key -text (mix of letters & no's) - foreign key CustomerID-number
They are related as so
CustomerDetails CustId 1---->many CustID in HorseDetails
HorseDetails HorseID1---->many CustID in PastureManagement
CustomerDetails CustID 1------>many CustID in Product
CustomerDetails CustID 1------>many CustID in Invoice
The customer will have more than one horse details record
Each Horse will have more than one Pasture management record
The customer may have more than one product record
The customer will have more than one invoice record
I need to record individual customers with each of their horses records. Please advise if I have I set the tables up in a way that is correct for the db.
Also what I should do now, I know I need forms next but do not know how best to set forms up. The information in all five tables refers to one customer.
Thanks for any help.
Ani
Please help. I dont know quite what to do now.
I have created 5 tables
Tbl-CustomerDetails-Primary key autonumber
Tbl-HorseDetails -Primary key HorseID autonumber -with CustomerID as foreign key -Number
Tbl-PastureManagement - Primary/foreign key -HorseID - with CustomerID-number
Tbl-Invoice -Primary key -InvoiceId -autonumber with CustomerId as foreign key-Number
Tbl-Product -Primary key -text (mix of letters & no's) - foreign key CustomerID-number
They are related as so
CustomerDetails CustId 1---->many CustID in HorseDetails
HorseDetails HorseID1---->many CustID in PastureManagement
CustomerDetails CustID 1------>many CustID in Product
CustomerDetails CustID 1------>many CustID in Invoice
The customer will have more than one horse details record
Each Horse will have more than one Pasture management record
The customer may have more than one product record
The customer will have more than one invoice record
I need to record individual customers with each of their horses records. Please advise if I have I set the tables up in a way that is correct for the db.
Also what I should do now, I know I need forms next but do not know how best to set forms up. The information in all five tables refers to one customer.
Thanks for any help.
Ani