Prev | Current Page 2010 | Next

Michael R. Groh, Joseph C. Stockman, Gavin Powell, and Cary N. Prague

"Access 2007 Bible"

The main form captures the dialog form??™s events, and uses the data passed
through the FormClosing event. The main form could just as easily reference other properties
of the dialog form.
Notice that this technique eliminates the infamous bang-dot notation that Access developers have
suffered with for so many years. Treating a form as an OOP object eliminates a lot of overhead from
the code behind the main form.
Access forms are objects
It??™s important to understand that every Access form is actually an object created from a class and is
not a physical entity stored within the .accdb file. Most of us think of forms as a UI object that is
maintained somewhere within the .accdb file and used as needed. In reality, each form is stored
as a class, and Access instantiates a form object and displays the form on the screen whenever we
work with the form??™s class. In design view, Access presents us with an editable interface to the
form??™s class, and we work with the form??™s properties.


Pages:
1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022
Al Capone Katharsis Pamiętaj Wszystkie chwile Epizod III Wirus