Results 1 to 2 of 2
  1. #1
    Lounger
    Join Date
    Mar 2003
    Posts
    46
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Calling a procedure from a subform (Access 2K)

    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.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Calling a procedure from a subform (Access 2K)

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

    Me.Parent.UnlockFields

Posting Permissions

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