Using button to trigger calculation of a field in a form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hishow
    New Member
    • Jan 2015
    • 14

    #1

    Using button to trigger calculation of a field in a form

    Good day to you all.
    Please I have a form with 6 unbound fields (Field 1-6). Field6 depends on the input of Field1-5. I do not want Field6 to update automatically while inputting data into field1-5. I have a button called "Calculate" . I want field6 to update only on the click of this button "Calculate" . Any Vba to use please.

    Thank you in advance.
  • Seth Schrock
    Recognized Expert Specialist
    • Dec 2010
    • 2965

    #2
    You need to provide us with the calculation that you want to take place.

    Comment

    • Hishow
      New Member
      • Jan 2015
      • 14

      #3
      All the calculations have been done using expression. All fields are unbound. Field6 has calculation for FV(I, nper, pmt, pv, 0). Once I insert figure into field1, Field6 automatically recognizes the figure which I don't WANT. I will want a button to update Field6 instead of showing automatically.

      Thank you in advance

      Comment

      • TheSmileyCoder
        Recognized Expert Moderator Top Contributor
        • Dec 2009
        • 2322

        #4
        Code:
        Private Sub Button_Blick()
          Me.Field6=FV(I, nper, pmt, pv, 0)
        End Sub

        Comment

        Working...