Solved

How to get Access field to update immediately

Posted on 2013-12-21
3
467 Views
Last Modified: 2013-12-21
I've added two date fields and a textbox that give the total days an animal was in a particular area of our operation.  (see attached)

The Foster days and Vet days field won't update until you close and reopen the form.  

How do I fix this?

Control source.  =DateDiff("d",[FosteredDate],[FosteredDateReturned])
asn.png
0
Comment
Question by:jrsitman
  • 2
3 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) earned 400 total points
ID: 39734194
Seems it should. You can try putting a  Me.ReCalc in the AfterUpdate event of two dates involved in the total days calculation.

Private Sub FosteredDate_AfterUpdate()
    Me.ReCalc
End Sub


Private Sub FosteredDateReturned_AfterUpdate()
    Me.ReCalc
End Sub


mx
0
 

Author Closing Comment

by:jrsitman
ID: 39734245
perfect.

Thanks
0
 
LVL 75
ID: 39734252
You are welcome. Keep up the good work with the animals :-)
mx
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

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 functions 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 Microsoft Ac…
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…

914 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

19 Experts available now in Live!

Get 1:1 Help Now