Hi everyone.
Firstly, apologies for asking this question. I'm a noob when it comes to access but I'm learning fast.
What I'm trying to do is make my life a bit easier for myself (paperwork wise) when I do work for a customer. I've created 3 databases that I want to link together using a relationship but I don't seem to be able to get it 100% working (I'm nearly there but I'm not sure what I'm doing wrong).
The 1st database contains my customer details, the 2nd contains Works Order details and the 3rd contains Invoice details.
What I'm trying to achieve is to have a customer DB where any customer can have any number of works orders but each works order can only have 1 invoice attached to it.
Now, when I link the first and second DB together, great! It all works perfectly as I would expect it to (my customer can have multiple works orders against their name). The problem arises when I try to attach the 3rd (invoice) DB to the 2nd (works orders) DB. It seems to work ok when I add the data in plain / table view (or mode?) but when I want to view or add data using a form, the details are not there.
I eventually got the 3 databases to kind of work using a form with sub-forms but I'm not sure if this is causing the issue or not. It works perfectly if I only have 2 tabs on the form (customer details and works orders) but as soon as I introduce the Invoice tab it doesn't seem to be "attaching" the invoice data to the correct works order (and it seems to be getting confused with the relationship as it keeps on pointing to the 1st (customer) DB when trying to set this up in a form). I even thought that this was the issue and I needed to link the 3rd DB to the 1st DB with the correct ID fields but that still didn't work.
So for example, customerA has a works order number of 123. That works Order Number should relate to an invoice number of 456.
What's happening is customer A has a works order number of 123 (as expected). When I add invoice 456 to works order 123 it appears to work fine (as expected). I then change works order to the next works order in the table (124) but invoice 456 is attached to it even though it belongs to works order 123.
What seems to be happening is that the invoice number is somehow following me to whatever works order I'm looking at. I'm not sure if the relationships part is wrong (I just can't seem to get my head around it properly) or I'm missing something.
I keep on reading that you can have a 4th database to keep track of all the key fields and then use queries to display the data. Perhaps this is the way to go but it seems a bit long winded doing this for something so simple. I'm sure I'm doing something wrong but not sure what. I've even thought of duplicating (there, I've said it!) data to get to my desired result but that kinda defeats the whole point in me doing this.
I've included a screenshot of the relationship in the hope that it will help you understand my issue better as I'm a bit crap at explaining things.
Thanks all for any help or advice and sorry if I've confused the matter with my rambling on.