Solved

What is the correct syntax for DoCmd.Close (...... an Access Form ........). Executed from another Form Code

Posted on 2009-07-12
2
464 Views
Last Modified: 2013-11-27
If the action of closing the form is requested in the code belonging to the form, "mx " posted solution:
DoCmd.Close acForm, Me.Name
Worked.

But if I am in a different form code, and I want to close two other forms, the "solution" does not tell Access which form to close. How do I specify the form names I want to close in the DoCmd.Close acForm

Thanks
0
Comment
Question by:AAlpha1
2 Comments
 
LVL 92

Accepted Solution

by:
Patrick Matthews earned 500 total points
ID: 24836063
DoCmd.Close acForm, "Name of form goes here"
0
 

Author Closing Comment

by:AAlpha1
ID: 31602647
Worked perfectly. Thank you.
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many companies are making the switch from Microsoft to Google Apps (https://www.google.com/work/apps/business/). Use this article to learn more about what Google Apps has to offer and to help if you’re planning on migrating to Google Apps. It is …
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question