View Full Version : How to code the grand children?
prabhafriend
12-08-2009, 12:31 AM
Suppose I create a Form in Run time say Form1, and add a control say cmd1. If the user clicks the cmd1 then we have to close the Form but how to attach code to that control, exactly an event procedure for that cmd1. I want to understand the fundamentals. Thanks in advance.
You can use
DoCmd.Close acForm, formname
where formname is a Declared Variable, or
DoCmd.Close acForm, "formname"
where formname is the name of your open form.
geekgirlau
12-08-2009, 04:27 PM
If the control is located on the form that you are closing, you can also use
DoCmd.Close acForm, Me.Name
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.