In your button click event, execute an Update query on the table for the subform. That query would likely need criteria so that you only update records that relate to the key value in the main form record. You'd also need to refer to fields on the form(s) to get at the form values for the criteria. If you don't use criteria, you'll update all subform table records to Now().
Running action queries from code will raise prompts. If you don't want to see them, turn off warnings (but use a properly written error handler to ensure they're turned back on) or use .Execute method of the CurrentDb object. You can also execute query sql from code. Easier to use .Excecute but also possible to modify the sql property of a stored query then run that. That would not be my first choice.
Last edited by Micron; 09-11-2022 at 09:58 AM.
Reason: clarification
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.