Solved

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

Posted on 2009-07-12
2
443 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Article by: Leon
Software Metering within our group of companies has always been an afterthought until auditing of software and licensing became a pain point. Orchestrator and SCCM metering gave us the answer and it was an exciting process.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

911 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now