To start off, I am a novice to DB's and Access and well below that with coding so please bear that in mind in any answers, thank you!
I am setting up a simple database to keep track of equipment shipped for customers. The customers will bring the equipment in with their account numbers and we will generate a reference number for the return and associate that with the serial numbers for their units. Afterwards the units will be shipped out but many different customer returns will share the same tracking number. The form for customer and return entry is working swimmingly. Customer information is entered on the main form, the reference and date on the subform, and the model and serial number of the units on the sub-subform. The problem is when I go to enter the shipping data. I would like a form in which the shipment data is entered on a main form and a subform displays a combobox which pulls unit serial numbers from a query that returns just the numbers off returns where the tracking number field (the foreign key linked a shipment) is null. The desired result is to have that tracking number update to the return record. When I use this form it generates a new return record for each serial number instead. As the tracking number foreign key is a lookup, I can enter this in manually using the query and selecting the tracking from the combobox, but it would be much easier (and not to mention user friendly for coworkers) if the form would update this automatically.
Attached are screen grabs of my table relationships, the customer entry form (which is working as desired), the devices to be shipped query in design view (the query itself functions as expected), the shipment entry form (the subform combobox pulls from a list of serial numbers generated from the aforementioned query), and the return table with the undesired results from the shipment entry process.
I'm sure I'm missing something simple, but I'll never learn if I don't ask! Thanks in advance for any and all help. Once again, please keep in mind I am very new to all this. Also, I'm pretty busy so I may not be able to respond promptly so please have patience. Thanks!