Design a Microsoft Access Form for Partial and Combined Shipments
Question details
Create an Access form that records partial shipments and shipments containing lines from multiple orders.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- A shipment can include items from multiple orders, and an order can be fulfilled across multiple shipments.
- Observed behavior
- The desired form should record each shipment header and its shipped order lines while preserving the relationship between orders and shipments.
Identify the existing customer, order, and order-line keys, and decide whether each shipment belongs to a single customer. The design below assumes one customer per shipment.
Build a Shipment Form with a Linked Details Subform
Use normalized tables and a linked subform to record partial quantities and combine eligible order lines in one shipment.
Each shipment detail links one shipment to one order line. This allows an order line to appear in multiple shipments and a shipment to include lines from multiple orders.
Keep customer information on the shipment header and filter selectable order lines to that customer. Avoid storing the order ID again in ShipmentDetails when it can be determined through OrderLines.
In Access, use Create > Table Design to define Orders with OrderID and CustomerID, and OrderLines with OrderLineID, OrderID, ProductID, and OrderedQuantity. Set OrderID and OrderLineID as their respective primary keys.
Create a Shipments table with ShipmentID, CustomerID, and ShipmentDate. Create ShipmentDetails with ShipmentDetailID, ShipmentID, OrderLineID, and ShippedQuantity; use the ID fields as the primary keys for their respective tables.
Open Database Tools > Relationships. Link Orders.OrderID to OrderLines.OrderID, Shipments.ShipmentID to ShipmentDetails.ShipmentID, and OrderLines.OrderLineID to ShipmentDetails.OrderLineID. Use compatible field types and enable referential integrity for each relationship.
Use Create > Form Wizard to build a form bound to Shipments. Include controls for CustomerID and ShipmentDate so the user can identify the shipment before adding its lines.
In the main form's Design View, add a subform bound to ShipmentDetails. Set the subform control's Link Master Fields and Link Child Fields properties to ShipmentID, and add controls for OrderLineID and ShippedQuantity.
Set the OrderLineID combo box's Row Source to a query joining Orders and OrderLines, filtered by the customer selected on the main form. Display the order and product information while binding the combo box to OrderLineID. Requery it after the customer changes, and validate that each quantity is positive and does not exceed the remaining ordered quantity.

Use WPS Office for Shipment Spreadsheets and Documents
WPS Office is a free, lightweight alternative with a familiar interface for working with shipment spreadsheets and documents. Its Microsoft Office format compatibility makes it easy to move existing files into your workflow. WPS Office does not create or run Microsoft Access database forms.

Frequently Asked Questions
How can one shipment include items from different orders?
Add a ShipmentDetails record for each shipped order line, using the same ShipmentID and the appropriate OrderLineID. The order is identified through the related OrderLines record.
How do I record an order line shipped in multiple deliveries?
Add a separate ShipmentDetails record for the order line in each shipment, with the quantity shipped in that delivery. Check the total against the ordered quantity before saving.
How do I show only order lines for the selected customer?
Set the order-line combo box's Row Source to a query joining Orders and OrderLines and filter it by the CustomerID control on the main form. Requery the combo box when the customer changes.
Can I change the customer after adding shipment details?
Avoid changing the customer while details exist unless the form checks that every selected order line belongs to the new customer. Otherwise, remove or correct the affected details first.
Can WPS Office run the Access shipment form?
No. Use Microsoft Access to create and run the database form. WPS Office can instead help you work with shipment data exported to an Excel-compatible spreadsheet.




