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

    This is what I use in the after update event and it works but I need itto add the 850 to the amount that is already in the miscitemsprice and take itfrom it if its ture.



    Private Sub ApcoAir_AfterUpdate()
    If Me.ApcoAir = ture Then
    Me.MiscItemsPrice = 0
    Me.ProposalDescription = Replace(Me.ProposalDescription, vbCrLf &"Install Apco Air", "")
    Else
    Me.MiscItemsPrice = "850"
    Me.ProposalDescription = Me.ProposalDescription & vbCrLf &"Install Apco Air"
    End If

    End Sub

  2. #2
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    If I am understanding your request, you wish to deduct the value 850 from the MiscItemsPrice if true and add 850 to it if false.

    Code:
    Private Sub ApcoAir_AfterUpdate()
    If Me.ApcoAir = true Then
    Me.MiscItemsPrice = Me.MiscItemsPrice -850
    Me.ProposalDescription = Replace(Me.ProposalDescription, vbCrLf &"Install Apco Air", "")
    Else
    Me.MiscItemsPrice = Me.MiscItemsPrice + 850
    Me.ProposalDescription = Me.ProposalDescription & vbCrLf &"Install Apco Air"
    End If
    End Sub

  3. #3
    angie is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    232
    Thank You so much, that works just like I needed it to. thanks again

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

Similar Threads

  1. afterupdate event in a form
    By angie in forum Access
    Replies: 2
    Last Post: 04-03-2018, 05:35 PM
  2. AfterUpdate() Event To Filter Sub Form
    By chalupabatman in forum Programming
    Replies: 8
    Last Post: 11-06-2017, 01:36 PM
  3. Form AfterUpdate Event
    By RayMilhon in forum Forms
    Replies: 2
    Last Post: 09-09-2011, 09:20 AM
  4. AfterUpdate event help
    By 10 Gauge in forum Forms
    Replies: 11
    Last Post: 09-08-2011, 10:04 AM
  5. how to created afterupdate event
    By Brigitt in forum Forms
    Replies: 2
    Last Post: 02-15-2011, 03:23 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