A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Tracking user changes - Part 2



 
 
Thread Tools Display Modes
  #1  
Old November 17th, 2004, 10:12 PM
Carol Giannini
external usenet poster
 
Posts: n/a
Default Tracking user changes - Part 2

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.
  #2  
Old November 18th, 2004, 04:20 AM
Allen Browne
external usenet poster
 
Posts: n/a
Default

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

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Carol Giannini" wrote in message
...
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.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why does access security does not work under a different user acc. Alfons General Discussion 6 October 15th, 2004 04:53 PM
Security: User Account Problems David Kistner New Users 5 October 14th, 2004 10:22 PM
Update Part# field where is blank JUAN Running & Setting Up Queries 4 August 19th, 2004 08:54 PM


All times are GMT +1. The time now is 10:30 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.