Skip to Content
Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition
book

Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition

by Paul J. Deitel - Deitel & Associates, Inc., Harvey M. Deitel - Deitel & Associates, Inc.
June 2006
Intermediate to advanced content levelIntermediate to advanced
1344 pages
42h 52m
English
Pearson
Content preview from Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition

20.7. Querying the Books Database

Now that you have seen how to display an entire database table in a DataGridView, we demonstrate how to execute specific SQL SELECT queries on a database and display the results. Although this example only queries the data, the application could be modified easily to execute other SQL statements. Perform the following steps to build the example application, which executes custom queries against the Titles table of the Books database.

Step 1.
Creating the Project First, create a new Windows Application named DisplayQueryResult. Rename the Form FrmDisplayQueryResult and name its source file FrmDisplayQueryResult.vb, then set the Form’s Text property to Display Query Result.
Step 2.
Adding a Data Source to the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming Visual Basic .NET

Programming Visual Basic .NET

Dave Grundgeiger

Publisher Resources

ISBN: 013225140XPurchase book