I'm trying to set up some simple email automation to save my warehouse employees from having to write the same email to different customers multiple times per day. When they email a customer the message tells the customer the shipment ID and then the weights and dimensions for each box within the shipment. An example of the text in the email (including formatting) would be:
Shipment 4381358
Box 1 - 12" x 12" x 16" (13 lbs)
Box 2 - 16" x 18" x 18" (34 lbs)
Shipment 4389524
Box 1 - 8" x 8" x 8" (2 lbs)
Box 2 - 8" x 8" x 8" (2 lbs)
Box 3 - 12" x 12" x 16" (24 lbs)
I have the macro written to send the message from Outlook, and now I'm trying to design the form/subform (I know that's a bit backwards, but I wanted to make sure I could figure out the email automation since I hadn't done that before).
My question is, how should I store the data so that the structure makes sense, and then what is the best way to feed that to the Outlook message via VBA? I'm getting hung up on the variability of my data. Some orders will have only 1 shipment ID, whereas others will have up to 5. Some shipments will have 1 box, and others will have up to 100.
Any and all suggestions are very much appreciated. I'm pretty seasoned with VBA in Excel, but Access is a new beast to me, so forgive my ignorance.