Solved

Update Data after adding After Update Event

Posted on 2011-02-25
2
277 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 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

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…
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

820 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