Passing data from one form to create a record in another form
Posted on 2013-01-17
I have a form – frmJobDetails - that displays a record.
Relevant fields in this record are:
I also have another function with a form to create a ClientLog record. On this form the user enters the ClientID and the JobID together with some other information.
This all works fine.
But I would like to add a button on the frmJobDetails form that goes straight and opens the form to create a new ClientLog, carrying across the JobID and ClientID onto the form and also set some of the fields in the form to defined values.
I cannot figure out the code that needs to go in the button’s click event. Can someone give me a start please?