Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 578 trang
THÔNG TIN TÀI LIỆU
Cấu trúc
Microsoft Access Solutions: Tips, Tricks and Secrets from Microsoft Access MVPs
Credits
About the Authors
About the Contributors
Acknowledgments
Contents
Introduction
Part I: Tables
Tip 1: Creating Tables for Web Applications
Objective
Scenario
Tables
(Web) Queries
(Web) Forms
(Web) Reports
(Web) Macros
Modules
Using This Tip
Additional Information
Tip 2: Alternative to the Hyperlink Data Type
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Tip 3: Fill a Table with Numbers
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Part II: Queries
Tip 4: A Single Query to Do Both Updates and Insertions
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Tip 5: Using a Cartesian Product to Generate a Calendar
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Tip 6: Using a Multiselect List Box as a Query Parameter
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Part III: Forms
Tip 7: Cascading Combo Boxes
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Tip 8: Cascading Combo Boxes on Continuous Forms
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Tip 9: Paired List Boxes
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Tip 10: Marquees, Scrolling Messages, and Flashing Labels
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Tip 11: Custom Tab Controls
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Tip 12: Simulating Web-Style “Hover” Buttons
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Tip 13: Custom Form Navigation Controls
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Tip 14: Calendar Form
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Tip 15: Simulating Drag-and-Drop in Access Forms
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Tip 16: Providing Visual Feedback for Drag-and-Drop
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Tip 17: Control List Boxes with Drag-and-Drop
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Part IV: Taking Advantage of Report Capabilities
Tip 18: Page 1 of N for Groups
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Tip 19: Always Starting a Group on an Odd Page for Duplex Printing
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Tip 20: Dynamically Changing the Sort Order of a Report
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Tip 22: Week-at-a-Glance–Type Report
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Tip 22: Day-at-a-Glance–Type Report
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Part V: Using VBA
Tip 23: Useful String Functions
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Tip 24: Useful Functions
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Tip 25: Relinking Front-End Databases to Back-End Databases in the Same Folder
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Tip 26: SaveAsText and LoadFromText: Undocumented Backup and Anti-Corruption Tricks
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Tip 27: Reminders—Building Tickler Forms and Utilities
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Tip 28: Using Disconnected Recordsets
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Tip 29: Implementing Soundex
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Part VI: Automating Applications and ActiveX Controls
Tip 30: Charting Using Excel
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Tip 31: Using the TreeView Control
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Tip 32: Using the ListView Control
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Tip 33: Adding Images to the TreeView Control
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Tip 34: Using the TreeView and ListView Controls Together
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Part VII: Access and the Web
Tip 35: Building an Access Web Application
Objective
Scenario
Working with SharePoint
Tables
Queries
Forms
Reports
Macros
Publishing a SharePoint Database
Modules
Using This Tip
Additional Information
Tip 36: Embedding a Web Control in a Form
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Tip 37: Building a Time Picker in a Web Form: An Introduction to Web Macros
Objective
Scenario
Tables
(Web) Queries
(Web) Forms
(Web) Reports
(Web) Macros
Modules
Using This Tip
Additional Information
Tip 38: RSS Feeds
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Tip 39: Detecting Whether You’ve Got Internet Connectivity
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Part VIII: Utilites
Tip 40: Drilling Down to Data
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Tip 41: Utility for Renaming a Form’s Controls
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Tip 42: Document Management Using Access
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Tip 43: Ultra-Fast Searching
Objective
Scenario
Tables
Queries
Forms
Reports
Macros
Modules
Using This Tip
Additional Information
Index
Nội dung
[...]... book doesn’t do that Books on Access usually concentrate on how Access works, in addition to the aforementioned We don’t do that either What is covered in this book: Solutions to business problems that we’ve solved over the years Most of these solutions work in every version of Access, although some solutions may require code alteration to work in the earliest versions of Access Much of the work can... experienced developer or a brand new Access user Tools You Will Need The only tool required is a copy of Access, preferably as part of the Office Professional Suite Almost any version of Access will do, except that the code in the MDB files were created to be used with Access 2000 or later The ACCDB files are for use with Access 2007 or later The SharePoint examples only work with Access 2010 and SharePoint... our 10 years of experience as Microsoft MVPs, and even longer time helping Access users through our websites, newsgroups, list servers, and magazine articles, every tip in this book has been developed as a solution to a problem that an Access user or developer has encountered With the exception of the “Singing Cowboys” SharePoint demo, every tip solves a problem If you use Access long enough, you will... this book However, you do not need to retype the code: All the samples can be downloaded from our website at www.wiley.com/go/ accesssolutions Development Standards As long-term professional Access developers, we feel strongly that standards should always be used when developing Access applications In this chapter, we present the naming conventions we use, as well as discuss the Requirements Analysis... ACCDB files are for use with Access 2007 or later The SharePoint examples only work with Access 2010 and SharePoint 2010 All files are presented in Access 2000 (MDB) and Access 2007/10 (ACCDB) formats, Introduction xxiii with the exception of a few SharePoint Access 2010 files, which do not have an MDB equivalent What’s on the Website In the interest of reducing our carbon footprint and keeping the price... and application logic out of forms and into the back-end Web server When you design a table for Web Services in Access, you do not have the traditional Design View for Access tables When building a Web-based table, you are restricted to using this Table Layout View, which was introduced in Access 2007 Web-based forms have substantially fewer program features then the standard client VBA–enabled forms... Forms ■■ Part IV: Taking Advantage of Report Capabilities ■■ Part V: Using VBA ■■ Part VI: Automating Applications and Active X Controls ■■ Part VII: Access and the Web ■■ Part VIII: Utilities We did it this way because it seemed like the natural order of Access objects and work flow The number of tips in each section varies There is no dependency between the tips, so each tip stands on its own, although... 381 383 383 383 389 389 389 391 391 391 396 396 399 399 399 403 404 404 xvii xviii Contents Reports Macros Modules Using This Tip Additional Information 405 405 406 415 415 Part VII Access and the Web 417 Tip 35 Building an Access Web Application 419 Objective Scenario Working with SharePoint Tables Queries Forms Reports Macros Publishing a SharePoint Database Modules Using This Tip Additional Information... to apply them No matter what you choose, there is someone who is in disagreement It is not particularly important that you follow our standard, although it is very close to what many professional Microsoft Access developers use What is important is that you develop a standard, document it, and be consistent with using it Table 1-1 lists the naming standards that we use in this book Table 1-1: Naming... tables are required? Which fields are required to achieve the required output? How will those tables be accessed (queries, forms, reports, Web, etc.)? Fifth, you must identify the infrastructure What must be created or maintained to support the system? Infrastructure includes items like the version of Access required to meet the goals of the project Is the hardware sufficient? Is the network sufficient? . w1 h0" alt=""
Access
®
Solutions
Tips, Tricks, and Secrets from
Microsoft
®
Access
®
MVPs
Arvin Meyer
Douglas J. Steele
Access
®
Solutions: Tips,. five children. Arvin is active in the Microsoft news-
groups and maintains the Access Web” at
www.mvps.org /access, an Access download
site on his domain