• global code (Access 2000)

    Author
    Topic
    #432204

    In the private codes of the form i use the command DoCmd.Close acForm, Me.Name which is very convenient.But i need to use now public codes and i
    cannot use it anymore, neither can i sue only DoCmd.Close.I have to refer to the form.Is there any trick here too for the closing of any form ?

    Viewing 0 reply threads
    Author
    Replies
    • #1013435

      If you use a public sub or function that you want to call from the form that you want to close, you can use

      DoCmd.Close acForm, CodeContextObject.Name

      CodeContextObject refers to the object that is executing the code, i.e. the form.

    Viewing 0 reply threads
    Reply To: global code (Access 2000)

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

    Your information: