Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2004

    Unanswered: call subroutine question...

    If I have a form that runs a routine called "private sub time_afterclick()" and on a subform I have another routine called "private sub calculate_afterclick()"
    how can I call the first routing from within the second?
    would it be

    private sub time_afterclick()
    call calculate_afterclick()
    end sub

    or...would I have to specify a different path for the code since it is located on the main form??
    Thank you!

  2. #2
    Join Date
    Mar 2003
    The Bottom of The Barrel
    Provided Answers: 1
    private subs are unavailable to anything outside the form.

    If you wish to call the main forms sub, you'll have to make it public, then explicitly reference it in the subform.
    oh yeah... documentation... I have heard of that.

    *** What Do You Want In The MS Access Forum? ***

Posting Permissions

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