Solved

How to get Access field to update immediately

Posted on 2013-12-21
3
453 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
Comment Utility
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
Comment Utility
perfect.

Thanks
0
 
LVL 75

Expert Comment

by:DatabaseMX (Joe Anderson - Access MVP)
Comment Utility
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)

Join & Write a Comment

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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.

762 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

13 Experts available now in Live!

Get 1:1 Help Now