Solved

Update Data after adding After Update Event

Posted on 2011-02-25
2
270 Views
Last Modified: 2012-06-21
I have added an after update event to a field on a form called [DateofAdmission].  There is existing data in the underlying table.  The after update event automatically updates a date in another field on the form called [NextDue].  The After Update event takes the DateofAdmission and addes 30 days to it and updates NextDue.  Again, there is existing data in NextDue and it is not accurate (not 30 days from DateofAdmission).  How do I get the code to update all the records with the correct NextDue without manually reentering all the DateofAdmission fields.  I know this is probably simply, but I am not a programmer.  Thanks for your help.    
0
Comment
Question by:manndo
2 Comments
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 250 total points
Comment Utility
run an update query, backup your table first

update tablex
set NextDue=dateadd("d",30,[DateofAdmission])
0
 

Author Closing Comment

by:manndo
Comment Utility
Worked like a charm.  Thanks again capicorn1.  You are awesome.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
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.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

772 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

12 Experts available now in Live!

Get 1:1 Help Now