Solved

event for next record in continuous form

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

829 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