Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Jun 2002
    Posts
    114
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Closeall after opening (Access 2000)

    In the following code i open a form in another database.How cam i close all, i.e. close the form and close the database in the same code?

    Dim appAccess As Access.Application
    Set appAccess = CreateObject("Access.Application.9")
    appAccess.OpenCurrentDatabase "C:PrioritiesF1.mdb"
    appAccess.DoCmd.OpenForm "ReferenceCollection", acNormal
    appAccess.Visible = True
    appAccess.UserControl = True
    appAccess.DoCmd.RunCommand acCmdAppMaximize 'This maximizes the window

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

    Re: Closeall after opening (Access 2000)

    You could use appAccess.Quit

    But why would you want to do this?

Posting Permissions

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