Page 16 - Microsoft Office Excel 2003 Programming Inside Out
P. 16

Table of Contents

                    Part 6
                    Excel and the Outside World: Collaborating Made Easy

                             Chapter 21
                             Excel and Other Office Applications                                 445

                                  Starting Another Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 445
                                  Activating Another Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 449
                                  Binding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 449
                                       Late Binding  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 450
                                       Early Binding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 452
                                  Interacting with Other Office Applications . . . . . . . . . . . . . . . . . . . . . . . . 455
                                       Opening a Document in Word  . . . . . . . . . . . . . . . . . . . . . . . . . . . . 457
                                       Accessing an Active Word Document . . . . . . . . . . . . . . . . . . . . . . . 460
                                       Creating a New Word Document  . . . . . . . . . . . . . . . . . . . . . . . . . . 461
                                       Controlling Excel from Other Office Applications . . . . . . . . . . . . . . . 462
                                  Working with Multiple Applications to Get the Job Done. . . . . . . . . . . . . . 465
                             Chapter 22
                             Excel and the Structured Query Language                             467
                                  Comparing Spreadsheets and Databases. . . . . . . . . . . . . . . . . . . . . . . . 467
                                       Fundamental Database Concepts  . . . . . . . . . . . . . . . . . . . . . . . . . 467
                                       Database Keys. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 469
                                       Accessing Databases from Excel . . . . . . . . . . . . . . . . . . . . . . . . . . 470
                                  Manipulating Databases with SQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 471
                                  The Select Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 471
                                       Simple Select Statements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 472
                                       Retrieving Rows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 473
                                       Sorting Rows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 475
                                       Using Multiple Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 476
                                       Using Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 477
                                  The Insert Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 478
                                       Using the Insert Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 478
                                  The Update Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479
                                  The Delete Statement. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479
                             Chapter 23
                             Introducing ADO                                                     481
                                  The ADO Object Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 482
                                       Using the ADO Object Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 483
                                  The Connection Object  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 483
                                       Key Properties and Methods of the Connection Object. . . . . . . . . . . 484
                                       Connecting to Different Database Management Systems  . . . . . . . . 485
                                       Using the Errors Collection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 486
                                       Using the Error Object  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 487


                xvi
   11   12   13   14   15   16   17   18   19   20   21