Solved

event for next record in continuous form

Posted on 2003-10-29
5
756 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

717 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