Call AfterUpdate Function

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jahangir
    New Member
    • Oct 2006
    • 22

    Call AfterUpdate Function

    How I can call manually afterupdate function in my code. When I click on a button this will call afterupdate function of some frame.
  • Andrew Thackray
    New Member
    • Oct 2006
    • 76

    #2
    the AfterUpdate function is just another sub in your form module.

    You call it using the format Controlname_Eve nt

    EG if I have a command button called cmdExit and I want to run its Click event from code I would use the code line

    Code:
               cmdExit_Click

    Comment

    • PEB
      Recognized Expert Top Contributor
      • Aug 2006
      • 1418

      #3
      If you want to call an after Update function to a Bouton but not from the bouton
      you need only to write in the respective form:

      myboutonName_Af terUpdate()

      To execute the respective in fact Sub

      Those aren't functions

      :)

      Comment

      • NeoPa
        Recognized Expert Moderator MVP
        • Oct 2006
        • 32662

        #4
        Another way, particularly if you want to call from elsewhere (_AfterUpdate is a Private procedure), is to write the _AfterUpdate sub to call another, Public, routine.
        This Public routine can then be called from elsewhere also.

        Comment

        Working...