My need: I need to track which packages went on which shipment. The majority of shipments would have 6 or so packages, I'm told we've shipped as many as 100 packages historically, I'd like to plan for the ability to track 150 - 200 packages to give us some cushion.
My problem: If we had no more than 10 or so packages for all shipments, I could easiliy encorporate them into my shipment table and include data entry for these packages on the main form. However, if I want to have 100 or even 200, the packages will need their own form, and table. Does it make sense to just create a foreign key that relates back to the shipment table, make 200 columns and make a column for each package? Or is there a better way to do it.
Secondarily: I would like to create a form which dynamically generates text boxes either after a number is entered into a text box on the main form.... 6 packages....therefore ....6 textboxes are generated. Or alternately, Make it so that one text box shows initially, and once data is entered, another text box appears...and repeat this until all package ID's are entered. Anyone have any examples of how I would go about doing this. I assume it would involve some coding. Below are the basic outlines of my tables.
Thanks in advance...
Shipments_Table
Shipment Number
Departure Date
Arrival Date
Package Type
Number of Packages
I have a separate table which lists all of the available package serial numbers. We need to have the ability to track package maintenance dates as well as where they've gone and when.
Package_ID
Package Serial Number
Current Package Condition
Comment
One additional table stores the Package Condition and Comment History
Package_History
Package Serial Number
Package Condition
Comment
Change_Date
Soon to be created table
Serial_Number Table
Shipment Number
Serial Number
My problem: If we had no more than 10 or so packages for all shipments, I could easiliy encorporate them into my shipment table and include data entry for these packages on the main form. However, if I want to have 100 or even 200, the packages will need their own form, and table. Does it make sense to just create a foreign key that relates back to the shipment table, make 200 columns and make a column for each package? Or is there a better way to do it.
Secondarily: I would like to create a form which dynamically generates text boxes either after a number is entered into a text box on the main form.... 6 packages....therefore ....6 textboxes are generated. Or alternately, Make it so that one text box shows initially, and once data is entered, another text box appears...and repeat this until all package ID's are entered. Anyone have any examples of how I would go about doing this. I assume it would involve some coding. Below are the basic outlines of my tables.
Thanks in advance...
Shipments_Table
Shipment Number
Departure Date
Arrival Date
Package Type
Number of Packages
I have a separate table which lists all of the available package serial numbers. We need to have the ability to track package maintenance dates as well as where they've gone and when.
Package_ID
Package Serial Number
Current Package Condition
Comment
One additional table stores the Package Condition and Comment History
Package_History
Package Serial Number
Package Condition
Comment
Change_Date
Soon to be created table
Serial_Number Table
Shipment Number
Serial Number