Multiple field values in the same form
Posted on 2006-11-29
I have a "Work Shifts" table layout which is related to and accessed from my "Customer" table layout, casuing the customer name and ID number fields to be automatically populated by means of a script and a lookup. I must then select up to three contractors who will work on this shift in the Contractors fields, which are drop down boxes from a Contractors value list. My problem is updating the ContactorsID fields with up to three individual ID numbers. The aim is to also show the shift details in a portal on the "Contactors" layout via a ContractorsID reltionship between the "Contractors" and "Work Shifts" tables. In this way I can see a summary of what shifts each contractor works in the "Contractors" layout.
Obviously if I have three differet contractors I need three different ContractorID values on the same form, but if I have three diferent ContractorID fields (ContractorID1, ContractorID2 etc) then how can I make the relationship between the "Work Shifts" and the "Contractors" Tables?
Any help is much appreciated. I am reasonably new to all this and not at all versed in SQL, so I a hoping for a script based solution and an explanation that asummed beginner status.