Access 2007 VBA Programmer’s Reference phần 1 ppsx

115 289 0
Access 2007 VBA Programmer’s Reference phần 1 ppsx

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... to Access Data Data Access Objects Why Use DAO? New Features in DAO 74 75 77 79 79 80 82 82 83 83 84 84 84 85 85 99 10 0 10 1 10 4 10 4 10 5 10 7 10 9 11 0 11 1 11 1 11 2 11 3 Multi-Value Lookup Fields Attachment Fields Append Only Fields Database Encryption 11 3 11 4 11 4 11 5 Referring to DAO Objects The DBEngine Object 11 5 11 7 The Workspaces Collection The Errors Collection The Databases Collection The Default (Access) ... Summary Chapter 7: Using ADO to Access Data 14 7 14 7 14 8 15 3 15 3 15 7 15 8 16 2 16 4 16 7 17 2 17 5 17 8 18 2 18 7 18 9 19 1 Ambiguous References Referring to ADO Objects Connecting to a Data Source 19 2 19 3 19 3 Specifying a Cursor Location Server-Side Cursors Client-Side Cursors 19 5 19 5 19 5 Rolling Your Own Connection String Creating and Using a Data Link Using Transactions Data Access with ADO Overview of the... Reports VBA versus Macros in Access Creating Macros in Access 2007 New Features for Macros in Access 2007 Why All the Changes? Advantages to Using VBA over Macros Summary Chapter 3: New Features in Access 2007 Who Benefits The End User xi xiii xxxi 1 1 2 2 3 3 4 4 5 8 8 11 13 15 17 18 19 19 19 20 22 23 26 30 31 31 33 34 34 47033ftoc.qxd:WroxProgRef 3/30/07 12 :23 AM Page xvi Contents The Power User The IT... Database Object References xviii 11 7 12 1 12 2 12 3 12 6 47033ftoc.qxd:WroxProgRef 3/30/07 12 :23 AM Page xix Contents DAO Object Properties DAO Property Types Creating, Setting, and Retrieving Properties Creating Schema Objects with DAO Creating Creating Creating Creating Tables and Fields Indexes Relations Multi-Value Lookup Fields 12 7 12 7 12 8 13 2 13 3 13 6 13 8 14 0 Database Encryption with DAO 14 3 Setting the... Controls Summary Chapter 11 : Enhancing Reports with VBA Introduction to Reports How Reports Are Structured How Reports Differ from Forms New in Access 2007 Creating a Report Working with VBA in Reports Control Naming Issues The Me Object xxii 289 289 290 290 2 91 2 91 292 293 294 295 296 298 299 299 300 3 01 305 314 317 319 322 323 324 325 327 3 31 333 339 346 347 347 347 348 349 3 51 3 51 3 51 352 47033ftoc.qxd:WroxProgRef... Characters 10 17 Appendix L: Naming Conventions 10 27 Appendix M: Tips and Tricks 10 45 Index 10 81 xxix 47033ftoc.qxd:WroxProgRef 3/30/07 12 :23 AM Page xxx 47033flast.qxd:WroxProgRef 3/30/07 1: 50 PM Page xxxi Introduction Welcome to Access 2007 VBA Programmer’s Reference This release of Access probably has the most dramatic changes for developers and users since Access 97 and arguably since Access 2.0... 22: Protecting Yourself with Access 2007 Security The Office Trust Center What Is the Trust Center? Trust Center Features Disabled Mode Why Do We Have Disabled Mode? Enabling a Database Modal Prompts AutomationSecurity Macros in Access 2007 xxviii 709 710 713 714 715 717 718 718 720 7 21 722 723 723 724 724 725 728 729 730 7 31 7 31 732 734 737 747 747 748 753 755 756 756 757 7 61 762 763 765 765 767 47033ftoc.qxd:WroxProgRef... Office Access 2007 SQL Server 2005 Express Edition SQL Server 2005 How Do You Choose? Developing Databases Without VBA Code Access 2007 Database Templates Access Database Objects Creating Tables Creating Queries Creating Forms Creating Reports Creating Macros Summary Chapter 2: Access, VBA, and Macros VBA in Access Writing Code in Modules Writing Code Behind Forms and Reports VBA versus Macros in Access. .. Encapsulation Inheritance Polymorphism Inheriting Interfaces Instancing Summary xxiv 415 417 418 420 4 21 4 21 422 423 424 426 427 427 428 429 430 432 440 4 41 4 41 443 443 444 445 448 452 458 4 61 4 61 462 462 463 464 464 467 476 476 477 478 478 482 483 47033ftoc.qxd:WroxProgRef 3/30/07 12 :23 AM Page xxv Contents Chapter 14 : Extending VBA with APIs Introducing the Win32 API Know the Rules, Program with Confidence... power of Access by adding VBA, we identify the new features of Access 2007 Because many of you are familiar with prior versions of Access, we also point out some of the major changes, particularly if they affect the way that you will be working The goal is for Access 2007 VBA Programmer’s Reference to be your primary resource and tool to help you leverage both Access s built-in functionality and VBA in . ii Access ™ 2007 VBA Programmer’s Reference 47033ffirs.qxd:WroxProgRef 3/30/07 12 :20 AM Page i 47033ffirs.qxd:WroxProgRef 3/30/07 12 :20 AM Page ii Wiley Publishing, Inc. Access ™ 2007 VBA Programmer’s. Code 4 Access 2007 Database Templates 5 Access Database Objects 8 Creating Tables 8 Creating Queries 11 Creating Forms 13 Creating Reports 15 Creating Macros 17 Summary 18 Chapter 2: Access, VBA, . Macros 19 VBA in Access 19 Writing Code in Modules 19 Writing Code Behind Forms and Reports 20 VBA versus Macros in Access 22 Creating Macros in Access 2007 23 New Features for Macros in Access 2007

Ngày đăng: 09/08/2014, 12:22

Từ khóa liên quan

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan