Solved

Update Data after adding After Update Event

Posted on 2011-02-25
2
279 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
[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 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 250 total points
ID: 34982552
run an update query, backup your table first

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

Author Closing Comment

by:manndo
ID: 34983318
Worked like a charm.  Thanks again capicorn1.  You are awesome.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
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 …
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…

739 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