John L. Viescas
A Division of Microsoft Corporation
One Microsoft Way
Redmond, Washington 98052-6399
© 2007 by John L. Viescas and Jeff ConradISBN 9780735623255
All rights reserved. No part of the contents of this book may be reproduced or transmitted in any form or by any means without the written permission of the publisher.
Library of Congress Control Number: 2006940676
1 2 3 4 5 6 7 8 9 QWT 2 1 0 9 8 7
Distributed in Canada by H.B. Fenn and Company Ltd.
A CIP catalogue record for this book is available from the British Library.
Microsoft Press books are available through booksellers and distributors worldwide. For further information about international editions, contact your local Microsoft Corporation office or contact Microsoft Press International directly at fax (425) 936-7329. Visit our Web site at www.microsoft.com/mspress. Send comments to email@example.com.
Microsoft, Microsoft Press, ActiveX, Calibri, Excel, Expression, FrontPage, Georgia, Hotmail, InfoPath, IntelliSense, Internet Explorer, MSDN, MS-DOS, MSN, OneNote, Outlook, PivotChart, PivotTable, PowerPoint, Rushmore, SharePoint, SQL Server, Tahoma, Verdana, Visual Basic, Visual C#, Visual C++, Visual FoxPro, Visual J#, Visual Studio, Windows, Windows Live, Windows NT, Windows Server, and Windows Vista. are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Other product and company names mentioned herein may be the trademarks of their respective owners.
The example companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted herein are fictitious. No association with any real company, organization, product, domain name, e-mail address, logo, person, place, or event is intended or should be inferred.
This book expresses the author’s views and opinions. The information contained in this book is provided without any express, statutory, or implied warranties. Neither the authors, Microsoft Corporation, nor its resellers, or distributors will be held liable for any damages caused or alleged to be caused either directly or indirectly by this book.
Acquisitions Editor: Juliana Aldous Atkinson
Developmental Editor: Sandra Haynes
Project Editor: Melissa von Tschudi-Sutton
Project Management: Publishing.com
Compositor: Curtis Philips
Technical Reviewer: Rozanne Murphy Whalen
Copy Editors: Andrea Fox and Kim Wimpsett
Proofreader: Andrea Fox
Indexer: Rebecca Plunkett
Body Part No. X13-24152
For Suzanne, as always…
For the love of my life, Cheryl Without your love, support, and patience,
I would not have been able to complete this project.
Thank you for always believing in me.
And for Amy, Aaron, and Arica. Thank you
for understanding why Daddy could not play
very much for a long time.
And thank you John for taking a chance
and giving an untested, slightly crazy, Access Junkie
the opportunity of a lifetime.
About the Authors
John Viescas has been working with database systems for most of his career. He began by designing and building a database application for a magazine and paperback book distributing company in Illinois in 1968. He went on to build large database application systems for El Paso Natural Gas Company in his hometown in the early 1970s. From there, he went to Applied Data Research in Dallas, where he managed the development of database and data dictionary systems for mainframe computers.
Before forming his own company in 1993, he helped market and support NonStop SQL for Tandem Computers in California. Somewhere along the way (would you believe 1991?), he got involved in the early testing of a new Microsoft product that was codenamed “Cirrus.” The first edition of Running Microsoft Access was published in 1992. Since then, he has written four more editions of Running, co-authored the best-selling SQL Queries for Mere Mortals, wrote Building Microsoft Access Applications, and is pleased to be writing about Access from the “Inside Out” for this book. If you hang out on the Web, you can find him answering questions about Access in the newsgroups. John has been named a Microsoft MVP every year since 1993 for his continuing help to the Access users’ community. You can reach John via his Web site at www.viescas.com.
Jeff Conrad started working with Access when he saw a need at his full-time position for a database solution. He bought a book on Access (should have been one of John’s books) and began teaching himself how to use the program to solve his business’s needs. He immediately became hooked on the power and ease of working with Access long after John had written several books on the program.
Jeff found a home in the Microsoft Access newsgroups, asking questions as he was learning the ins-and-outs of Access and database development. He now enjoys giving back to a community that helped him when he was first learning how to use Access. He has been an active participant for many years in the Access newsgroups where he is best known as the Access Junkie.
Jeff also owns his own company, Conrad Systems Development, creating custom database and spreadsheet applications for the food service industry. Jeff maintains a Web site with a wealth of information and resource links for those needing guidance with Access (www.AccessJunkie.com). He was awarded Microsoft’s Most Valuable Professional award from 2005 to 2007 for his continual involvement with the online Access community. Because Jeff knows Access “Inside Out,” he recently joined Microsoft as a Software Design Engineer in Test working with Access and Excel technologies.
The folks on the Microsoft Office Access development team provided invaluable technical support as we worked with the beta software and tried to figure out some of the challenging technical details in Microsoft Office Access 2007. Special thanks to Clint Covington, Tim Getsch, Zac Woodall, Suraj Poozhiyil, Neil Black, Viki Selca, and Rob Cooper. You folks make an author’s job so much easier. But any errors or omissions in this book are ultimately ours.
A book this large and complex requires a top-notch team to get what we put into Microsoft Office Word documents onto the printed pages you are now holding. We had some of the best in the business at both Microsoft Press and Publishing.com to get the job done. Many thanks to Sandra Haynes and Melissa von Tschudi-Sutton at Microsoft Press. Special thanks to Curt Philips, Rozanne Murphy Whalen, Andrea Fox, Kim Wimpsett, and Publishing.com. We couldn’t have done it without you!
And last, but certainly not least, we thank our wives and soul mates. They not only patiently stood by us as we cranked through nearly 3,000 pages of manuscript but also helped behind the scenes reviewing and editing what we did.
Your All-in-One Resource
On the CD that accompanies this book, you’ll find additional resources to extend your learning
The reference library includes the following fully searchable titles:
Microsoft Computer Dictionary, 5th ed.
First Look 2007 Microsoft Office System by Katherine Murray
Windows Vista Product Guide
Also provided are a sample chapter and poster from Look Both Ways: Help Protect Your Family on the Internet by Linda Criddle.
The CD interface has a new look. You can use the tabs for an assortment of tasks:
Check for book updates (if you have Internet access)
Install the book’s sample files
Find links to helpful tools and resources
Go online for product support or CD support
Send us feedback
The following screen shot gives you a glimpse of the new interface.