• Calling a procedure from a subform (Access 2K)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Calling a procedure from a subform (Access 2K)

    Author
    Topic
    #419983

    I have a form with a subform in it. The main form (frmTreatmentHeader) tracks info about who is the client, when is treatment, etc. The subform (frmTreatmentDetail) list all the procedures done during a visit. Can someone tell me how can I call the procedure that is on the main form from the subform. FOr e.g. when a user need to add a new treatment detail I would like to call on the ‘unlockfields’ procedure that is on the main form. Many thanx.

    Viewing 0 reply threads
    Author
    Replies
    • #949790

      Make sure that UnlockFields is declared as Public. You can then call it like this from the subform:

      Me.Parent.UnlockFields

    Viewing 0 reply threads
    Reply To: Calling a procedure from a subform (Access 2K)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: