Solved

event for next record in continuous form

Posted on 2003-10-29
5
716 Views
Last Modified: 2012-06-27
I have a continuous form, each record has several fields that may be updated. I want to update the PostedBy field and PostedDte field if that particular record was changed. I'm thinking of using the "Dirty" function on leaving one record and going to the next to update that info prior to writing the record. What event (and where is it) gets control when I try to move to the next record?
0
Comment
Question by:ronallard
  • 2
  • 2
5 Comments
 
LVL 16

Expert Comment

by:ahmedbahgat
ID: 9642233
access xp forms has On Dirty Event, you may try it

cheers
0
 

Author Comment

by:ronallard
ID: 9642288
Sorry this is Acc-97, that would be no use to me...
0
 
LVL 16

Expert Comment

by:ahmedbahgat
ID: 9642309
then you may use dirty function within  the On current event of the form

cheers
0
 
LVL 8

Accepted Solution

by:
MrRobin earned 125 total points
ID: 9642412
If any fields have been changed then the form's Before Update event is fired just before Access saves the changes.  You could try the following sort of code...

Private Sub Form_BeforeUpdate(Cancel As Integer)
    PostedBy = CurrentUser
    PostedDate = Date
End Sub
0
 

Author Comment

by:ronallard
ID: 9642563
Thanks - That worked just like I wanted it to!
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now