Tracking user changes - Part 2

C

Carol Giannini

I posted this already, but think I lost it; my apologies if it shows up
twice. Rick's suggestions about tracking changes in my form worked
perfectly, except that changes to the subform don't trigger the update to the
timestamp field (coded as a beforeupdate event on the main form). What's the
best way to update a field in the main form based on a change to a field in a
subform? As always, TIA.
 
A

Allen Browne

Use the AfterUpdate event of the subform to update the field in the main
form, and save the change:

Private Sub Form_AfterUpdate()
With Me.Parent
![NameOfYourDateTimeField] = Now()
.Dirty = False
End With
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top