On my main form I have two subforms which are invisible to the operator but are used to pull up the last two records from different tables. The operator enters in the new record on the main form.
I am trying to make it so that after they click save it updates to last two records again. However I cannot seem to figure out how to get the subforms to refresh on Save. I have tried using:
I am trying to make it so that after they click save it updates to last two records again. However I cannot seem to figure out how to get the subforms to refresh on Save. I have tried using:
But it doesn't work. Currently I have it so that when the user clicks save it transfers the data from one text box to the next for the last two and nulls the one for the operator to enter in a new one. It is faulty though. I would like to be able to close the form and reopen it after clicking the save but I haven't been able to find a way to do so. Any help/advice would be greatly appreciated. Thanks.Me.subformname.SetFocus
DoCmd.GoToRecord , , acLast
Me.mainformname.SetFocus