Results 1 to 3 of 3
  1. #1
    angie is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    232

    afterupdate event in a form

    You want to store a calculated result anyway?


    I am using a afterupdate in a field to generator the stored calculated amount.


    My field name is “ equipt cost”

    It gets it data from a combo box selection

    I entered the following on the change event but can not get it to work



    Private SubEquipt_Cost_AfterUpdate()
    Me.Financed_Price= Round(([Price] + ([Price] * 0.075 + 840)) / 0.47 / 0.88 + 750, 0)

    End Sub

    And thefollowing to the finance price text box
    Private SubFinanced_Price_Change()
    Call price_afterupdate
    End Sub

    Not surewhat I am doing wrong


  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,445
    not sure what you are trying to do. what does 'can not get it to work' mean?

    I entered the following on the change event - of which control?

    why are you updating financed_price in a cost afterupdate event when any change to the cost has no bearing on the calculation?

    and what is the price_afterupdate event?

  3. #3
    angie is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    232
    http://allenbrowne.com/casu-14.html

    I was following the "you want to store a calculated result anyway"
    I was going to use a calculated field in a table but was told not a wise thing to do, I still need to store this in a table so I was using the after update property.

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

Similar Threads

  1. AfterUpdate() Event To Filter Sub Form
    By chalupabatman in forum Programming
    Replies: 8
    Last Post: 11-06-2017, 01:36 PM
  2. Replies: 4
    Last Post: 10-29-2014, 03:49 PM
  3. Replies: 2
    Last Post: 06-09-2012, 01:56 AM
  4. Form AfterUpdate Event
    By RayMilhon in forum Forms
    Replies: 2
    Last Post: 09-09-2011, 09:20 AM
  5. AfterUpdate event help
    By 10 Gauge in forum Forms
    Replies: 11
    Last Post: 09-08-2011, 10:04 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