Results 1 to 2 of 2
  1. #1
    EddieN1 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Posts
    313

    How to know when a Sum Of function has been updated


    I have a datasheet view with several numeric fields and corresponding SumOfs the same fields. When I view this in datasheet mode and change a numeric value, the SumOf fields takes a short time before they update. I can accept that, however, I need to get access to the SumOf fields as soon as they have be re-calculated, not before. When I try to use the SumOf value in the AfterUpdate event, I find that it hasn't been updated yet and I get the "before updated" value. How can I know when the SumOf fields have been re-calculated or how can I force the re-calc. Thanks, Eddie

  2. #2
    Rawb is offline Expert
    Windows XP Access 2000
    Join Date
    Dec 2009
    Location
    Somewhere
    Posts
    875
    Personally, I don't use Datasheet View so I don't know if you can do this or not, but you can force any linked field to show updated information by using the .Repaint Method.

    Code:
    Public Sub Combo1_AfterUpdate()
      ' Update the value of the "Text3" immediately when anyone changes "Combo1"
      Me!Text3.Repaint
    End Sub
    If that doesn't work, you could probably use .Requery (although that's typically used for fields that aren't directly Bound to a Table/Query Field).

Please reply to this thread with any new information or opinions.

Similar Threads

  1. SellRate should get updated
    By jalal in forum Access
    Replies: 6
    Last Post: 08-10-2012, 07:36 AM
  2. autofill box is always updated as 0.
    By mejia.j88 in forum Forms
    Replies: 7
    Last Post: 11-08-2011, 07:15 PM
  3. records with different updated report_date
    By lizzywu in forum Reports
    Replies: 3
    Last Post: 10-27-2011, 01:28 PM
  4. Append only updated records
    By Fabdav in forum Queries
    Replies: 4
    Last Post: 10-10-2011, 11:17 AM
  5. the last updated date and time
    By venu in forum Access
    Replies: 2
    Last Post: 04-02-2010, 08:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums