设为首页收藏本站Access中国

Office中国论坛/Access中国论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

返回列表 发新帖
查看: 5272|回复: 7
打印 上一主题 下一主题

[书籍/PDF/英文] Access 2003 Programming by Example with VBA, XML, and ASP

[复制链接]
跳转到指定楼层
1#
发表于 2005-10-1 03:37:00 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
[英文原版计算机信息技术图书].58.Wordware.Publishing.Access.2003.Programming.by.Example.with.VBA.XML.and.ASP.Mar.2005.eBook-DDU.pdf (11.62 MB)

《Access 2003 Programming by Example with VBA, XML, and ASP 》

《Access 2003 使用VBA、XML和ASP实例编程》


by Julitta Korol



• Paperback: 600 pages

• Publisher: Wordware Publishing, Inc. (March, 2005)

• Language: English

• ISBN: 1556222238

• List Price: $39.95

Book Description::

This book is designed to take Access users to the next step--programming--and consists of six parts that cover an introduction to VBA programing AKO, DDL, event programming, ASP and XML.



About the Author

Julitta Korol studied 10 world languages before switching her language passion to computers. She is a software consultant who delivers custom-tailored hands-on training and develops advanced database and spreadsheet applications. She has written a dozen computer books published exclusively by MIKOM Publishing in Warsaw, Poland. Her books from Wordware include Learn Microsoft Excel 2002 VBA Programming with XML and ASP, Learn Microsoft Access 2000 Programming by Example, and Microsoft Excel VBA 2000 Programming. She lives on Long Island, New York.



第一部分:Access 2003 VBA编程介绍


  • 第一章:过程和模块
  • 第二章:VBA编辑器(VBE)
  • 第三章:变量、常量和数据类型
  • 第四章:传递参数到过程和函数
  • 第五章:条件判断
  • 第六章:循环
  • 第七章:数组编程
  • 第八章:自定义集合和类模块
  • 第九章:调试VBA程序和错误处理


第二部分:使用ADO创建和操作数据库


  • 第十章:使用ADO访问数据
  • 第十一章:使用ADO创建并访问数据表和字段
  • 第十二章:使用ADO建立索引和关联
  • 第十三章:使用ADO查找和读取记录
  • 第十四章:记录操作
  • 第十五章:使用ADO创建和运行查询
  • 第十六章:使用ADO高级特性
  • 第十七章:使用ADOX和JRO实现数据库安全
  • 第十八章:数据库备份


第三部分:JET数据定义语言编程


  • 第十九章:创建、修改、删除数据表和字段
  • 第二十章:在数据表之间确保数据完整性和关系
  • 第二十一章:定义索引和主键
  • 第二十二章:数据库安全
  • 第二十三章:视图和存储过程


第四部分:窗体和报表的事件编程


  • 第二十四章:窗体事件
  • 第二十五章:报表事件
  • 第二十六章:控件事件识别
  • 第二十七章:更多的事件编程


[此贴子已经被作者于2005-9-30 20:52:57编辑过]

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享分享 分享淘帖 订阅订阅
2#
 楼主| 发表于 2005-10-1 04:15:00 | 只看该作者
<FONT face="MS Sans Serif">Contents


  • Acknowledgments. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv
  • Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv


Part I — Introduction to Access 2003 VBA Programming

Chapter 1 Procedures and Modules . . . . . . . . . . . . . . . . . . . . . . . . 3


  • Procedure Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
  • Module Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
  • Events, Event Properties, and Event Procedures . . . . . . . . . . . . . . . . . . . . . . 6
  • Why Use Events?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
  • Walking Through an Event Procedure . . . . . . . . . . . . . . . . . . . . . . . . 7
  • Compiling Your Procedures. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
  • Chapter Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11


Chapter 2 The Visual Basic Editor (VBE). . . . . . . . . . . . . . . . . . . . . . 12


  • Understanding the Project Explorer Window . . . . . . . . . . . . . . . . . . . . . . . 12
  • Understanding the Properties Window. . . . . . . . . . . . . . . . . . . . . . . . . . . 13
  • Understanding the Code Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
  • Other Windows in the VBE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
  • On-the-Fly Syntax and Programming Assistance . . . . . . . . . . . . . . . . . . . . . 16
  • List Properties/Methods. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
  • Parameter Info . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
  • List Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
  • Quick Info. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
  • Complete Word . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
  • Indent/Outdent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
  • Comment Block/Uncomment Block . . . . . . . . . . . . . . . . . . . . . . . . 21
  • Using the Object Browser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
  • Using the VBA Object Library. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
  • Using the Immediate Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
  • Chapter Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27


Chapter 3 Variables, Data Types, and Constants . . . . . . . . . . . . . . . . . 28

<UL>
  • What Is a Variable?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
  • What Are Data Types? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
  • Creating Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
  • Declaring Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
  • Specifying the Data Type of a Variable . . . . . . . . . . . . . . . . . . . . . . . . . . 33
  • Using Type Declaration Characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
  • Assigning Values to Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
  • Forcing Declaration of Variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
  • Understanding the Scope and Lifetime of Variables . . . . . . . . . . . . . . . . . . . . 40
  • Procedure-Level (Local) Variables . . . . . . . . . . . . . . . . . . . . . . . . . 40
  • Module-Level Variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
  • Public Variabl
  • 3#
     楼主| 发表于 2005-10-1 04:20:00 | 只看该作者
    <FONT face="MS Sans Serif">

    Part II — Creating and Manipulating Databases with ADO

    Chapter 10 Accessing Data Using ADO . . . . . . . . . . . . . . . . . . . . . 171


    • ADO Object Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
    • Establishing a Connection with the Data . . . . . . . . . . . . . . . . . . . . . . . . . 173
    • Opening a Microsoft Jet Database in Read/Write Mode . . . . . . . . . . . . . . . . . 176
    • Opening a Microsoft Jet Database in Read-Only Mode . . . . . . . . . . . . . . . . . 177
    • Opening a Microsoft Jet Database Secured with a Password . . . . . . . . . . . . . . . 178
    • Opening a Microsoft Jet Database with User-Level Security. . . . . . . . . . . . . . . 179
    • Opening a Microsoft Excel Spreadsheet . . . . . . . . . . . . . . . . . . . . . . . . . 181
    • Opening a dBASE File Using MSDASQL Provider . . . . . . . . . . . . . . . . . . . 182
    • Opening a Text File Using ADO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184
    • Connecting to the Current Access Database . . . . . . . . . . . . . . . . . . . . . . . 185
    • Creating a New Access Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
    • Copying a Database. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
    • Connecting to an SQL Server. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188
    • Database Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
    • Compacting a Database. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
    • Chapter Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193


    Chapter 11 Creating and Accessing Tables and Fields with ADO. . . . . . . . . 194


    • Creating a Microsoft Access Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195
    • Copying a Table. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198
    • Deleting a Database Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199
    • Adding New Fields to an Existing Table . . . . . . . . . . . . . . . . . . . . . . . . . 200
    • Removing a Field from a Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201
    • Retrieving Table Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202
    • Retrieving Field Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
    • Linking a Microsoft Access Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204
    • Linking a Microsoft Excel Spreadsheet. . . . . . . . . . . . . . . . . . . . . . . . . . 205
    • Listing Database Tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
    • Changing the AutoNumber . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208
    • Listing Tables and Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209
    • Listing Data Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
    • Chapter Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211


    Chapter 12 Setting Up Indexes and Table Relationships with ADO . . . . . . . . 212

    <UL>
  • Creating a Primary Key. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
  • Creating a Single-Field Index. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213
  • Adding a Multiple-Field Index to a Table. . . . . . . . . . . . . . . . . . . . . . . . . 215
  • Listing Indexes in a Table. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
  • Deleting Table Indexes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
  • Creating Table Relationships . . . . . . . . . . . . . . . . . . . . . . . . .
  • 4#
     楼主| 发表于 2005-10-1 04:21:00 | 只看该作者
    <FONT face="MS Sans Serif">Part III — Programming with the Jet Data Definition Language

    Chapter 19 Creating, Modifying, and Deleting Tables and Fields. . . . . . . . . 395


    • Creating Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 397
    • Deleting Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 401
    • Deleting Database Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 402
    • Modifying Tables with DDL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 402
    • Adding New Fields to a Table . . . . . . . . . . . . . . . . . . . . . . . . . . . 402
    • Changing the Data Type of a Table Column. . . . . . . . . . . . . . . . . . . . 403
    • Changing the Size of a Text Column . . . . . . . . . . . . . . . . . . . . . . . 404
    • Deleting a Column from a Table. . . . . . . . . . . . . . . . . . . . . . . . . . 405
    • Adding a Primary Key to a Table . . . . . . . . . . . . . . . . . . . . . . . . . 406
    • Adding a Multiple-Field Index to a Table . . . . . . . . . . . . . . . . . . . . . 406
    • Deleting an Indexed Column . . . . . . . . . . . . . . . . . . . . . . . . . . . 407
    • Deleting an Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 408
    • Setting a Default Value for a Table Column . . . . . . . . . . . . . . . . . . . . 409
    • Changing the Seed and Increment Value of AutoNumber Columns. . . . . . . . 410
    • Chapter Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 412


    Chapter 20 Enforcing Data Integrity and Relationships between Tables. . . . . . 413


    • Using Check Constraints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 414
    • Establishing Relationships between Tables . . . . . . . . . . . . . . . . . . . . . . . . 418
    • Using the Data Definition Query Window . . . . . . . . . . . . . . . . . . . . . . . . 421
    • Chapter Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 423


    Chapter 21 Defining Indexes and Primary Keys . . . . . . . . . . . . . . . . . 424


    • Creating Tables with Indexes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 424
    • Adding an Index to an Existing Table. . . . . . . . . . . . . . . . . . . . . . . . . . . 425
    • Creating a Table with a Primary Key . . . . . . . . . . . . . . . . . . . . . . . . . . . 427
    • Creating Indexes with Restrictions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 428
    • Deleting Indexes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 432
    • Chapter Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 432


    Chapter 22 Database Security . . . . . . . . . . . . . . . . . . . . . . . . . 433

    <UL>
  • Setting the Database Password . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 433
  • Removing the Database Password . . . . . . . . . . . . . . . . . . . . . . . . . . . . 434
  • Creating a User Account . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 435
  • Changing a User Password . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 436
  • Creating a Group Account . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 437
  • Adding Users to Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 438
  • Removing a User from a Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 438
  • Deleting a User Account . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 439
  • Granting Permissions for an Object. . . . . . . . . . . . . . . . . . . . . . . . . . . . 440
  • Revoking Security Permissions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 441
  • Deleting a Group Account . . . . . . .
  • 5#
     楼主| 发表于 2005-10-1 04:21:00 | 只看该作者
    <FONT face="MS Sans Serif">Part V — Taking Your VBA Programming Skills to the Web

    Chapter 28 Access and Active Server Pages . . . . . . . . . . . . . . . . . . . 549


    • Introduction to Active Server Pages . . . . . . . . . . . . . . . . . . . . . . . . . . . 552
    • The ASP Object Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 555
    • Installing Internet Information Services (IIS). . . . . . . . . . . . . . . . . . . . . . . 556
    • Creating a Virtual Directory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 557
    • Connecting to a Microsoft Access Database via DSN . . . . . . . . . . . . . . . . . . 559
    • Other Methods of Connecting to a Microsoft Access Database . . . . . . . . . . . . . 565
    • Establishing a DSN-less Connection . . . . . . . . . . . . . . . . . . . . . . . 566
    • Connecting to a Microsoft Access Database Using OLE DB . . . . . . . . . . . 566
    • Retrieving Records . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 567
    • Breaking Up a Recordset When Retrieving Records . . . . . . . . . . . . . . . 569
    • Retrieving Records with the GetRows Method . . . . . . . . . . . . . . . . . . 576
    • Database Lookup Using Drop-Down Lists . . . . . . . . . . . . . . . . . . . . . . . . 579
    • Database Lookup Using a Multiple Selection List Box. . . . . . . . . . . . . . . . . . 583
    • Adding Data into a Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 588
    • Modifying a Record. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 592
    • Deleting a Record. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 597
    • Creating a Web User Interface for Database Access . . . . . . . . . . . . . . . . . . . 601
    • Chapter Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 605


    Chapter 29 XML Features in Access 2003 . . . . . . . . . . . . . . . . . . . . 607

    <UL>
  • What Is XML? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 607
  • XML Support in Access 2003 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 609
  • Exporting XML Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 610
  • Understanding the XML Data File. . . . . . . . . . . . . . . . . . . . . . . . . 612
  • Understanding the XML Schema File . . . . . . . . . . . . . . . . . . . . . . . 615
  • Understanding the XSL Transformation Files . . . . . . . . . . . . . . . . . . . 617
  • Viewing XML Documents Formatted with Stylesheets . . . . . . . . . . . . . . 620
  • Advanced XML Export Options. . . . . . . . . . . . . . . . . . . . . . . . . . 620
  • Data Export Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . 620
  • Schema Export Options. . . . . . . . . . . . . . . . . . . . . . . . . . . 622
  • Presentation Export Options . . . . . . . . . . . . . . . . . . . . . . . . 623
  • Applying XSLT Transforms to Exported Data . . . . . . . . . . . . . . . . . . . . . . 624
  • Importing XML Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 629
  • Exporting to and Importing from XML Programmatically . . . . . . . . . . . . . . . . 634
  • Exporting to XML Using the ExportXML Method . . . . . . . . . . . . . . . . 635
  • Transforming XML Data with the TransformXML Method. . . . . . . . . . . . 643
  • Importing to XML Using the ImportXML Method . . . . . . . . . . . . . . . . 650
  • Manipulating XML Documents Programmatically . . . . . . . . . . . . . . . . . . . . 650
  • Loading and Retrieving the Contents of an XML File. . . . . . . . . . . . . . . 652
  • Working with XML Document Nodes. . . . . . . . . . . . . . . . . . . . . . . 653
  • Retrieving Information from Element Nodes . . . . . . . . . . . . . . . . . . . 655<
  • 6#
    发表于 2008-5-20 13:28:40 | 只看该作者
    初学者,估计暂时用不到,友情顶!!!
    7#
    发表于 2009-8-24 21:05:27 | 只看该作者
    有没有中文的
    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

    QQ|站长邮箱|小黑屋|手机版|Office中国/Access中国 ( 粤ICP备10043721号-1 )  

    GMT+8, 2024-5-7 07:19 , Processed in 0.112537 second(s), 30 queries .

    Powered by Discuz! X3.3

    © 2001-2017 Comsenz Inc.

    快速回复 返回顶部 返回列表