Hi,
I created a spreadsheet previously, that uses VBA to create an invoice in PDF format from the data submitted in an Excel userform. One of the fields in the userform is a drop down list of suppliers (originating from an Access database table), and the address automatically appears in the invoice, based on the selected supplier. Just to clarify, I've linked the spreadsheet to Access, so that the supplier table is also on the spreadsheet itself.
That all works perfectly. However, it recently transpires that one of the suppliers is prone to have various addresses, even though their company name remains the same. The problem is, if I update the address on the table, the previous invoices stored on the Access database are going to be inaccurate.
So I'm thinking of creating a sub table in Access (called t_SupplierAddresses or something), whereby suppliers can have more than one address assigned to them.
So my question is, if I have two tables, the main supplier table and the sub table for the addresses, is it possible for the Excel userform to link to both tables? So that if I select, say, supplier A, all addresses for supplier A appear in another drop down menu, for me to select the correct one from?
If it is possible, can you explain broadly the approach I should take please? I'm happy to do the research afterwards, I just need a point in the right direction!
I hope I explained my question clearly, and many thanks in advance.
Bookmarks