I am working on a database system for a small furniture retailer. I have uploaded a picture of the relationships because I don't know how I'd describe it otherwise!
I've hidden tables which aren't relevant. The StockTracker table individually identifies every product ordered so each delivered item can be matched to a specific customer and records of it's movements can be monitored etc. There is a one to many join with the purchase orders table which of joins to suppliers.
At the end of the each day I need to generate purchase orders to be sent out to each supplier. I can easily produce reports to do this using the Sorting and Grouping feature, but I also want to have a record of each purchase order. My problem is that I don't have any idea how to go about generating a purchase order for each supplier and then and then updating the PurchaseID field in tblStockTracker so that the 2 relate, all this bearing in mind that the product needs to go onto the right purchase order for the relevant supplier. All of this needs to be done automatically! Can anyone give me any pointers?
I hope this all makes sense!
Thank you
I've hidden tables which aren't relevant. The StockTracker table individually identifies every product ordered so each delivered item can be matched to a specific customer and records of it's movements can be monitored etc. There is a one to many join with the purchase orders table which of joins to suppliers.
At the end of the each day I need to generate purchase orders to be sent out to each supplier. I can easily produce reports to do this using the Sorting and Grouping feature, but I also want to have a record of each purchase order. My problem is that I don't have any idea how to go about generating a purchase order for each supplier and then and then updating the PurchaseID field in tblStockTracker so that the 2 relate, all this bearing in mind that the product needs to go onto the right purchase order for the relevant supplier. All of this needs to be done automatically! Can anyone give me any pointers?
I hope this all makes sense!
Thank you