Results 1 to 2 of 2
  1. #1
    annmv888 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2016
    Posts
    15

    Question Send a message after a requery using vba

    I have a subform2 on subform1 on the main form. On a currency field curAmount on subform1 I requery subform(2) where I am listing all the curAmount for the year and summing them in a total field sumcurAmount. I have the following code on curAmount AfterUpdate event for the requery. This works fine.



    Code:
    Private Sub curAmountOfCheck_AfterUpdate()
     
    If Me.Dirty Then Me.Dirty = False
    Forms!frmMembers!subfrmSeries.Form!subfrmReimbursementChecks.Form.Requery
     
    End Sub
    The problem I cannot resolve is I want to send a message if the sumcurAmount (unbound textbox) field on subform2 has exceeded $150. I have tried to put it on the AfterUpdate event for sumcurAmount because it does update the field due to the requery but nothing happens.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    AfterUpdate event triggers only when data is changed by user input, not code or calc.

    You will have to use the AfterUpdate event of some other control. Why not curAmount? Or is that curAmountOfCheck?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Send a plain text message without any prompt
    By lonesoac0 in forum Programming
    Replies: 3
    Last Post: 03-25-2017, 10:07 PM
  2. Replies: 2
    Last Post: 01-30-2015, 09:08 AM
  3. How to send system message to users
    By Paintballlovr in forum Access
    Replies: 2
    Last Post: 07-24-2013, 01:51 PM
  4. Send a message for other user
    By smahdih in forum Access
    Replies: 2
    Last Post: 11-18-2011, 01:52 PM

Tags for this Thread

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