OK, I'll try to be as brief as possible since I've been Googling for two days and whatever comes up is not suitable or viable with my limited skills.
I have a form frmCustomer, based on tblCustomer via qryCustomer. In this form is a drop down selection field which selects PK CustomerID from tblCustomer.
In this frmCustomer is a sub form frmCustomerRelation, based on tblCustomerRelation via qryCustomerRelation. tblCustomerRelation has CustomerRelationID as PK and CustomerID as FK. Form and sub form are linked via CustomerID. It will be a one-on-one relation although the entire tblCustomerRelation is still empty and has yet to be filled in for every customer. tblCustomer already contains some 1000+ records.
Now what I want to achieve is this: when I run a macro, three fields from the sub form frmCustomerRelation have to be copied into a new record into tblLogBook. I want to run this macro on the event of a change of either three fields in the sub form. tblLogBook will have its PK LogBookID along with the three fields from tblCustomerRelation and the CustomerID from tblCustomer. There will be no relations to/with tblLogBook so none of the latter four fields have to be a FK.
How do I do this?
Note 1: an append query does not work. When I select my first customer in frmCustomer, it does work. Yet when I select another customer in the drop down, the append query keeps copying the values related to the customer I selected initially. Also, when running the append query AFTER UPDATE of one of the fields, it still copies the values which where in the field before the user edited it.
Note 2: everybody seems to want to push me into making an Audit Trial. I know next to nothing about VBA, nor do I have time to learn it. So please point me towards a simple macro along the lines of: copy field1, field2, field3 of the SELECTED customer to a new record in tblLogBook. I'll figure out how to run/trigger this macro on my own.
Thank you very much in advance.