Closing FORM2 from FORM1in MS Access 2003

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pbala
    New Member
    • Dec 2008
    • 37

    Closing FORM2 from FORM1in MS Access 2003

    Hi,
    We are using MS Access 2003 Database contains some forms. We need to close FORM2 from FORM1. Eg.,

    In Form1,
    Code:
         CmdcloseForm2_Click()
            ' Close Form (using Docmd)
         End Sub
    Last edited by NeoPa; Mar 5 '09, 01:52 PM. Reason: Please use the [CODE] tags provided
  • DonRayner
    Recognized Expert Contributor
    • Sep 2008
    • 489

    #2
    This will do it for you.

    Code:
    Docmd.Close acForm, "FORM2", acSaveYes

    Comment

    • missinglinq
      Recognized Expert Specialist
      • Nov 2006
      • 3533

      #3
      Just understand that the acSaveYes is not saving a record, as many people believe, but rather is saving any design changes that have been made to the form.

      Linq ;0)>

      Comment

      Working...