The problem with the above query is that it only works if all three tables have related data. There will always be related data in TWO tables FIRST because you will first get an enquiry which will only put data in the 'enquiries' and 'property_enquiries' tables, At that point there is no 'Further Correspondence' thus there is no related data in the 'enq_crspndnce' table.
So my first question is how can I adjust the query so it can display records that don't have any 'Further Correspondence', so would only be pulling data from the 'enquiries' and 'property_enquiries' tables. But when 'Further Correspondence' is recorded it can also display records from all three tables.
I hope this is making sense!
My next problem is with the 'Further Correspondence Form' which is now on its own page.
Once the Admin user raises an enquiry on the 'Enquiries Details Page' there will be a button at the bottom of the record being displayed saying 'Add Correspondence' which they would click to be directed to the 'Further Correspondence Form'.
When the'Further Correspondence Form' is submitted I need the foreign key ( enquiry_id ) to be entered in the 'enq_correspondence table' that is related to the enquiry details being viewed. This is so I can JOIN the tables with the enquiry_id