... VBA. And to help you leverage the tools that Access provides, a chapter
Introduction
xxxii
47033flast.qxd:WroxProgRef 3/30/07 1:50 PM Page xxxii
Access 2007 Database Templates
New to Access 2007, ... defined;
6
Chapter 1: Introduction to Microsoft Access2007
47033c01.qxd:WroxProgRef 3/30/07 12:23 AM Page 6
Access
™
2007VBA Programmer’s Reference
Published by
Wiley Publishing, Inc.
10475 ... 776
Access Database Engine Expression Service 778
Sandbox Mode in Access2007 778
Sandbox Mode Limitations 779
Workarounds 780
Summary 780
Appendix A: Upgrading to Access2007 783
Appendix B: References...
... flast.qxp 2/16/07 9:52 PM Page xxvi
Excel
®
2007VBA
Programmer’s Reference
01_046432 ffirs.qxp 2/16/07 9:52 PM Page i
Excel
®
2007VBA
Programmer’s Reference
John Green
Stephen Bullen
Rob ... Excel 2007 Object Model 635
Appendix B: VBE Object Model 971
Appendix C:
Office 2007 Object Model 995
Index 1079
02_046432 ftoc.qxp 2/16/07 9:52 PM Page xx
Excel
®
2007VBA
Programmer’s Reference
John ... range of external
data sources that are now accessible, and the ways in which the data is accessed have been improved.
New file formats are used in Excel 2007, which are not compatible with previous...
... at:
❑
www.j-walk.com
Wrox can be contacted directly at:
❑
www .wrox. com
—for downloadable source code and support
❑
http://p2p .wrox. com/list.asp?list =vba_ excel
—for open Excel VBA discussion
Other ... the VBA lan-
guage. Many Excel users record and run macros and feel no need to learn about VBA.
04_046432 ch01.qxp 2/16/07 9:53 PM Page 1
xxviii
Introduction
Excel 2007VBA Programmer’s Reference
This ... e-mail Wrox (
support @wrox. com
) or us personally (
greenj@
bigpond.net.au
,
RobBovey@AppsPro.com
,
Stephen@oaltd.co.uk
). You can also ask questions on the
vba_ excel list at
http://p2p .wrox. com
....
... VBA. And to help you leverage the tools that Access provides, a chapter
Introduction
xxxii
47033flast.qxd:WroxProgRef 3/30/07 1:50 PM Page xxxii
Access 2007 Database Templates
New to Access 2007, ... ii
Introduction
Welcome to Access2007VBA Programmer’s Reference. This release of Access probably has the most dra-
matic changes for developers and users since Access 97 and arguably since Access 2.0. With ... Logo Design
Richard Pacifico
Credits
47033ffirs.qxd:WroxProgRef 3/30/07 12:20 AM Page ix
Access
™
2007VBA
Programmer’s Reference
47033ffirs.qxd:WroxProgRef 3/30/07 12:20 AM Page i
it’s shown at...
... Introduction to Microsoft Access2007
47033c01.qxd:WroxProgRef 3/30/07 12:23 AM Page 6
Introduction
Welcome to Access2007VBA Programmer’s Reference. This release of Access probably has the most ... build Access database solutions even faster than
before. After trying out Access 2007, I’m sure you’ll see that Microsoft Office Access2007 is the absolute
best release of Access ever.
Is Access ... 706
Typical Uses for the Built-In VBA Registry Functions 707
47033ftoc.qxd:WroxProgRef 3/30/07 12:23 AM Page xxvii
Access
™
2007VBA
Programmer’s Reference
47033ffirs.qxd:WroxProgRef 3/30/07 12:20 AM...
... the best model for
accessing and manipulating Access database engine objects and structure. Because of its tight integration
with Access, DAO also provides much faster access to Access databases ... tells AccessVBA to create a local procedure-level variable
102
Chapter 5: VBA Basics
47033c05.qxd:WroxProgRef 3/30/07 12:24 AM Page 102
physical thing. For example, if you were to set a reference ... Data
47033c06.qxd:WroxProgRef 3/30/07 12:24 AM Page 114
VBA Basics
Now that you know a bit about automating Access, using macros, and how VBA fits into the
Access automation picture, you’re almost ready...
... VBA
47033c08.qxd:WroxProgRef 3/30/07 12:25 AM Page 236
Using ADO to Access Data
Data Access Objects (DAO) was the default data access technology in the early versions of Access. In
fact, Access was ... models, ADO sits
atop OLE DB, providing programmers with an object-oriented model they can use to access and
manipulate the data sources.
When you use Access2007 to create a standard Jet database ... “tblInvItem”
227
Chapter 7: Using ADO to Access Data
47033c07.qxd:WroxProgRef 3/30/07 12:25 AM Page 227
47033c06.qxd:WroxProgRef 3/30/07 12:25 AM Page 190
Executing VBA
In the old days of programming,...
... necessary to implement
many Access solutions. The
Load and Current events are new to reports in Access2007.
352
Chapter 11: Enhancing Reports with VBA
47033c11.qxd:WroxProgRef 3/30/07 12:26 AM ... 11-1
349
Chapter 11: Enhancing Reports with VBA
47033c11.qxd:WroxProgRef 3/30/07 12:26 AM Page 349
opened in disabled mode by Access2007. If the VBA is disabled, the timer event code never runs ... in
Figure 10-14.
319
Chapter 10: Using VBA to Enhance Forms
47033c10.qxd:WroxProgRef 3/30/07 12:26 AM Page 319
Figure 10-30
Summary
The new features in Access2007 make it so much easier and faster...
... it to a stan-
dard VBA module.
VBA modules can contain many procedures, such as subs and functions, all of which were explained in
Chapter 2.
For instance, you may have a VBA module called
modClassroom ... class as far as VBA code is concerned. Its
return data type is declared as an integer, and when VBA code calls the property like so:
intNumberOfStudents = myClassroom.Students
VBA calls the procedure ... properties and methods that are visible and accessible to the VBA code that instantiated the object:
the interface.
Having already mentioned the class interface, it may be worthwhile digressing a little...
... attention:
4
Access 2007VBA Programming For Dummies
03_046531 intro.qxp 1/16/07 9:07 PM Page 4
Chapter 1
Where VBA Fits In
In This Chapter
ᮣ Describing Access
ᮣ Discovering VBA
ᮣ Seeing where VBA lurks
ᮣ ... can run, you need to know how to use Access before you can start to use
Access VBA.
Maybe you want to use Access to manage a large mailing list. Maybe you
need Access to manage your whole business, ... for VBA code.
Discovering VBA procedures
A VBA procedure is a series of instructions written in VBA code that tells an
application (like Access) exactly how to perform a specific task. In VBA...
... Microsoft Office
Access box and choose from the list of 24 types or choose All Files. The default file type for
Access 2007 is Microsoft Office Access, which includes all Access databases and ...
Access 2007. Then you can give it a new name and save it in your company folder. (For
more about converting to other versions of Access, see Appendix A.) Let’s view the database
in Access2007 ... to Access2007. In previous versions, when you
opened a database containing macros or Visual Basic for Applications (VBA) code, you were
asked whether you wanted to enable them. In Access 2007, ...
... 91
Disambiguating References to Object Model Components 91
The DAO Object Model (Old and New) 96
New Objects in the Access2007 DAO Object Model 97
Hidden Objects in the Access2007 DAO Object ... various types. By the time you have completed the Access2007VBA Bible, you
will be well-prepared to write VBA Automation code that uses your Access data to produce Word
letters, mailing labels ... viii
www.it-ebooks.info
W
elcome to the Access2007VBA Bible. Like all books in the Bible series, you can expect
to find both hands-on tutorials and real-world practical application information, as
well as reference and...