Results 1 to 3 of 3
  1. #1
    mpkopa
    Guest

    Increment Value of Control on Main Form

    I have a main form / Subform. On the Subform is a bound control that accepts an integer value. When a value is entered into this control I would like to add 1 to a bound control on the main form. If the value on the main form control is 5, then it would increment the control to 6. Can you give me an idea of how to set this up?

    Thanks
    Mike

  2. #2
    Lounger
    Join Date
    Jan 2001
    Location
    Tallinn, Harjumaa, Estonia
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Increment Value of Control on Main Form

    Use code like this as the after update code for the control in the subform:

    Private Sub controlInSubform_AfterUpdate()
    Me.Parent!ControlInParentForm = Me.controlInSubform + 1
    End Sub



    Anu

  3. #3
    mpkopa
    Guest

    Re: Increment Value of Control on Main Form

    Thanks Anu,
    I needed to see it to piece it together. Works great now. Truly appreciated!
    Mike

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •