Next chapterContents


Visual Basic 6 Database How-To

Introduction

About This Book

Since version 3, Visual Basic has been the tool of choice for database programmers everywhere. First came DAO with version 3, RDO with version 4, and then the ability to build robust ActiveX components in version 5. With each successive version, Microsoft adds more functionality to make database programming easier for you.

Visual Basic's powerful database feature set has continued to grow with version 6. New tools and technologies like ADO, OLE-DB, and the Microsoft Data Reporter vie for your attention. What does it all mean, what can it do for you, and most importantly, how do you quickly get up to speed?

That's why this book was created. Visual Basic 6 Database How-To gives an in-depth view of each major method of data access, with real-life examples with which to work. Like all books in the successful How-To series, Visual Basic 6 Database How-To emphasizes a step-by-step problem-solving approach to Visual Basic programming. Each How-To follows a consistent format that guides you through the issues and techniques involved in solving a specific problem. Each section contains the steps to solve a problem, as well as a discussion of how and why the solution works. In most cases, you can simply copy the provided code or objects into your application and be up and running immediately. All the code described in the book is available on the accompanying CD-ROM.

The book's concepts and examples are useful to Visual Basic programmers of all skill levels. Each How-To is graded by complexity level, with information on additional uses and enhancements to fit your needs exactly. Additionally, each chapter contains an introduction that summarizes each How-To and covers the chapter's techniques and topics so that you can zero in on just the solution you need without having to go through hundreds of pages to find it.

What You Need to Use This Book

You need Visual Basic 6, Professional or Enterprise Edition. This book was written using Visual Basic 6 Enterprise Edition, but most sections will work with the Professional Edition. Many of the sections will also work with Visual Basic 5, but specific references to menu selections and windows may have changed between versions. You may have to improvise the How-To's to make the samples work with Visual Basic 5.

Most chapters avoid using controls or tools not included with Visual Basic 6, Professional or Enterprise Edition. However, much of Visual Basic's strength is its extensibility using third-party tools and controls. You are encouraged to explore third-party offerings; they can often cut significant time from the development cycle.

About the Authors

Eric Winemiller is a principal software developer for Visteon Corporation in Maitland, Florida, where he builds BackOffice- and Visual Basic-based medical applications. The project he helped develop for Orlando Health Care Group and Visteon Corporation placed 10th in Info World's 1995 Top 100 client server sites. Eric has previously published in Visual Basic Developer, SQL Server Professional, and the Visual Basic 5 SuperBible. He has a bachelor's degree in computer science from the University of Central Florida. His family considers the Commodore 64 they gave him for his 13th birthday the best 200 bucks they ever spent. In his spare time he can be found trying to be a digital artist, puttering around his wood shop, or renovating his old house. He can be reached at winemill@visteon.com.

Jason T. Roff currently works for Isogon Corporation, a company that provides asset management solutions to Fortune 500 companies. Here he develops C/C++ client/server applications that are designed to run on heterogeneous networks. Jason holds a bachelor's degree from the University at Albany, New York, in computer science with applied mathematics. Jason can be reached at jroff@earthlink.net.

Bill Heyman specializes in custom software development for Windows 98 and Windows NT in Visual Basic, C++, and Java. As founder and president of Heyman Software, Inc., Bill uses his skills and experience to engineer innovative software for his clients. He can be reached at heyman@heymansoftware.com and http://www. heymansoftware.com/~heyman/.

Ryan Groom has been a computer addict since getting a Commodore 64 for Christmas back in 1985. After graduation he started work for a local school board where he cut his teeth on various computer topics from administering OS/2 and Novell servers to creating attendance management software. In 1996, he co-founded Gulliver Software in Saint John, New Brunswick, Canada. Gulliver Software develops Internet-based software, including its retail package Gulliver's Guardian, an Internet filtering suite for families. Currently Ryan (and Gulliver Software) is working with National Electronic Technologies on a releasing a public Internet access terminal called VideoNet. Ryan can be reached at ryan@gulliver.nb.ca, or you can visit him at http://www.gulliver.nb.ca or http://www.natel.ca.

Dedication

To my parents, who got me started down the path.

Eric Winemiller

To my sister Tammi, who has put up with all my beatings, has kept all my secrets, and can drink me under the table. I love you.

Jason Roff

To my parents, for giving me an Apple II+ and the start to a wonderful career.

Bill Heyman

For Kristy. Our new life has just begun.

Ryan Groom

Acknowledgements

I want to thank my wife Judy for again putting up with the grumpy foul beast who possesses me when I don't get enough sleep. I would also like to thank the Clinical and Clinical beta teams at Visteon who had to put up with that same beast.

Eric Winemiller

I would like to thank everybody at Macmillan who was gracious enough to give me another opportunity to do what I love, write. I would especially like to thank Brian Gill, Ron Gallagher, and Chris Nelson. I would also like to thank my other half, Kimberly, for putting up with many nights of not seeing me so that I could work to finish projects such as this book. I love you so very much, and I cannot wait to spend the rest of my life with you.

Jason Roff

I want to extend my thanks to the kind folks at Macmillan Computer Publishing for assisting me in contributing to this book. In addition, I would like to acknowledge the continuing love and support that my wife, Jodi, and toddler daughter, Cassie, give to me. Certainly I would not be where I am today without them.

Bill Heyman

To the staff at Macmillan Computer Publishing for providing the opportunity and patience for allowing me write about one of my favorite topics. It is very fulfilling to not only to be involved in such an exciting industry but also to have an opportunity to create documentation that may let others understand a topic I so enjoy. The gang at Gulliver Software and National Electronics for providing a fun and innovative atmosphere in which to work. Rory, a brother in arms, "You know what I mean, man!" Mom, Dad, Michael, and Peter, for your eternal support for every step I take. Steven and Dawn for providing a great get away from the woes of computerdom. Kristy, only with your support, patience, and understanding can any project be completed.

Ryan Groom

Tell Us What You Think!

As the reader of this book, you are our most important critic and commentator. We value your opinion and want to know what we're doing right, what we could do better, what areas you'd like to see us publish in, and any other words of wisdom you're willing to pass our way.

As the Executive Editor for the Programming team at Macmillan Computer Publishing, I welcome your comments. You can fax, email, or write me directly to let me know what you did or didn't like about this book--as well as what we can do to make our books stronger.

Please note that I cannot help you with technical problems related to the topic of this book, and that due to the high volume of mail I receive, I might not be able to reply to every message.

When you write, please be sure to include this book's title and author as well as your name and phone or fax number. I will carefully review your comments and share them with the authors and editors who worked on the book.

Fax: 317-817-7070

Email: prog@mcp.com

Mail: Executive Editor Programming Macmillan Computer Publishing 201 West 103rd Street Indianapolis, IN 46290 USA


Next chapterContents

© Copyright, Macmillan Computer Publishing. All rights reserved.