Solved

event for next record in continuous form

Posted on 2003-10-29
5
749 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

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

730 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