SYBEX Book Index

Mastering™ Access 2002 Premium Edition

Celeste Robinson Alan Simpson

Index

Copyright © 2001 SYBEX Inc., 1151 Marina Village Parkway, Alameda, CA 94501. World rights reserved. No part of this publication may be stored in a retrieval system, transmitted, or reproduced in any way, including but not limited to photocopy, photograph, magnetic or other record, without the prior agreement and written permission of the publisher. ISBN: 0-7821-4008-4 SYBEX and the SYBEX logo are either registered trademarks or trademarks of SYBEX Inc. in the USA and other countries. TRADEMARKS: Sybex has attempted throughout this book to distinguish proprietary trademarks from descriptive terms by following the capitalization style used by the manufacturer. Copyrights and trademarks of all products and services listed or described herein are property of their respective owners and companies. All rules and laws pertaining to said copyrights and trademarks are inferred. This document may contain images, text, trademarks, logos, and/or other material owned by third parties. All rights reserved. Such material may not be copied, distributed, transmitted, or stored without the express, prior, written consent of the owner. The author and publisher have made their best efforts to prepare this book, and the content is based upon final release software whenever possible. Portions of the manuscript may be based upon pre-release versions supplied by software manufacturers. The author and the publisher make no representation or warranties of any kind with regard to the completeness or accuracy of the contents herein and accept no liability of any kind including but not limited to performance, merchantability, fitness for any particular purpose, or any losses or damages of any kind caused or alleged to be caused directly or indirectly from this book. SYBEX Inc. 1151 Marina Village Pkwy. Alameda, CA 94501 USA Phone: 510-523-8233 www.sybex.com 4008index.qxd 5/31/01 2:49 PM Page 1139

INDEX

Note to the reader: Throughout this index boldfaced page numbers indicate primary discussions of a topic. Italicized page numbers indicate illustrations.

customizing, 610 Numbers data access pages in Access 2000 vs. Access 2002, 520 1.x objects, 652, 654 exiting, 34–35 2-D and 3-D charts, 568, 569, 592–593, installing from Office XP, 594 CD, 14, 1089–1096 32-bit application, 102 adding or removing components, 1093–1094, 1094 checking hardware first, 1090 enabling or converting old Access Symbols databases, 1094–1096, 1095 preparing previous versions of .adp project files, 9, 131, 872 Access, 1091–1092 .mdb files, 131 steps for installation, 1092 interacting with other programs. See under OLE and, 105–111 A bars in common, 107–108, 108 dialog boxes in common, 108–109, Access 108, 109 about, 4 Help, 111 applications, creating with, 124 Microsoft Office Shortcut bar, as client, 269 105–107, 105, 106, 107 converting from other Access for- office tools in common, 109–110 mats, 651–655 personalizing, 610–625, 630–634 creativity with, 860 4008index.qxd 5/31/01 2:49 PM Page 1140

1140 Access • Access, lessons on use

advanced options, 611–612, 611 Startup command-line options, 7, basics, 610–611, 611 631–634 , using for, 630–631, Startup , 23, 23 630–631 Windows and, 102–105 datasheet options, 612–613, 612 Access, lessons on use Edit/Find options, 613–614, 613 adding, editing, sorting, searching, Forms/Reports options, 614–615, 66–73 614 changes and corrections, 68–70, 69 general options, 615–617, 616 forms and datasheets, closing, 73 international options, 617–618, forms, opening, 66–68, 68 617 records, finding, 72–73 keyboard options, 618–619, 618 records, saving, 70 page options, 619–620, 620 sorting and filtering, 71–72 spelling options, 620–621, 621 customizing applications, 88–99 startup command-line options, close buttons, creating, 91–92 631–634 forms, adding command buttons tables/queries options, 621–623, to, 88–90, 89, 90 622 hyperlinks, adding to forms, 88 view options, 623–625, 624 mailing labels, creating buttons sharing with other office programs, for, 91 111–122 query buttons, creating, 91 dragging and dropping, 116, 116 reports switchboard, changing importing and exporting, 112 option names, 96–97, 96, 97 memory and, 111 startup commands, 97–98, 97 , 117–120, 119 switchboard forms, customizing, , 120–122, 121 94–96, 94, 95 OfficeLinks, 117, 117 testing new applications, 98–99 OLE, 112–115, 114, 115 Visual Basic (VB) code, adding to starting, 5–8 forms, 92–94, 93 creating desktop shortcuts, 8 data access pages, creating with Page Wizard, 78–80 organizing Start>Programs menu items, 7–8, 7 database window tips, 57 databases and tables, creating auto- matically, 49–57 4008index.qxd 5/31/01 2:49 PM Page 1141

action argument • ActiveX controls 1141

creating instant databases, 49–50, Action Failed dialog box, 950, 950 50 action queries. See under queries finishing, 54–55, 55 actions forms styles, 51, 52 action arguments, 713–714, 895 optional fields for tables, 50, 51 assigning, 701–702 printed reports styles, 52–53, 52 assigning actions while creating con- titles and pictures, 53–54, 53, 54 trols, 703–709, 703 understanding, 50–51, 50 control wizards, 704–707, 704, 705, forms, creating and customizing, 706, 707 59–65, 60 testing controls, 707, 708 closing and saving, 65 defining custom actions, 712 form design, modifying and sav- events and, 699 ing, 60–64, 61, 62 actions preventing cursor from landing in arguments, 895–899 a field, 64–65, 65 built-in commands, duplicating, Main Switchboard options, 57–59 900–901, 900 queries, 81–87 common actions, 895–896 changing, 86, 86 creating, 776–781, 776 creating, 81, 81 current data, displaying, 903–907, fields to view, 82–83, 83 905, 906 records to view, 83–84, 84 defined, 895 running, 85, 86 exceptional, 965–967 saving and reusing, 87 Expression argument, 898–899 sort order, 84–85, 85 Item argument, 896–898 reports, creating and printing, 75–78 list of specific, 718–721 closing and saving, 76 sending keystrokes, 903–904 mailing labels, 74–75, 75 sending messages, 901–903, 901, previewing and printing, 76–77 902 resuming lessons, 55, 56 setting values, 895–896 saving lessons, 56 SetValue action, 899 switchboard tips, 57 active forms. See under forms action argument, 713–714, 895 ActiveX controls, 501, 610 4008index.qxd 5/31/01 2:49 PM Page 1142

1142 Add-In Manager for library installation • background

Add-In Manager for library installation, printing technical documentation 628–629, 629 about, 868, 868, 869 AddressBook upgradeable custom applications, 671 Main Switchboard and, 757–762, ApplyFilter action, 983–985, 985 758–762 arguments opening AddressBook form with action arguments, 713–714 macros, 754–755, 755 defined, 830 addresses required and optional, 714 address book. See under Fulfill 2002 art, changing in wizard-created switch- hyperlink addresses, 264–267, 265 board, 747–750, 748, 749 aggregate functions, 368, 369 Asset Tracking sample database, 138 alphabetizing. See sorting AutoCorrect, 293–295, 294 Append query AutoForm, 395, 395 creating, 377–379, 377 AutoFormat, 460–461, 460 defined, 333, 374 AutoLookup queries, 356–357, 357, 358 applications. See also events automation tools. See macros; Visual adding to custom applica- Basic for Applications tions, 799–803, 800, 801, 802 AutoNumber fields, 187–190 application sample, 860–861 changing start value, 187–189, 188 creating, 124 defining relationships and, 189–190, defined, 128, 698 190 developer defined, 698 limitations of, 187 users defined, 698 AutoReport, 411, 412, 418, 420 development. See actions; controls; axes of charts, 569 events exploring, 863–867, 863–867 modifying existing, 869–870, 869 OLE and objects treatment, 850–854, B 851, 852, 853 opening and using, 861–862, 862, background 863 adding background color to pictures, 500 4008index.qxd 5/31/01 2:49 PM Page 1143

backing up • charts 1143

pictures, 498–499, 498 buttons resizing to prevent spillover pages, adding and deleting, 793–795, 794 447, 448 adding or deleting space between, backing up 795 database objects, 647 button types, 22 databases, 646–648 copying and moving buttons backups, restoring databases from, 648 between toolbars, 794 bookmarks, 267 creating, 796–799, 796, 797 bound controls (fields), 448–449 Triple-State toggle button, 1045–1048, 1045, 1046 branches and error handling, 841–843 breakpoints, 952–953 Briefcase (Windows) and Access, 102 builders, installing, 628–629, 629 C buttons automating default navigation but- calculations, 360–371 tons, 976–979, 977 calculated fields, 361–363, 361, 363 button faces, 797–798 designing summary expression, creating close buttons, 91–92 368–371, 370, 371 creating command buttons for data summary calculations, 363–368, 365, entry, 1016, 1016 366, 367 creating for mailing labels, 91 Simple Query Wizard, 334, 363 creating query buttons, 91 summary operators, 364 creating rectangles around, 763 totals reports, 412, 413 dialog box buttons ways to perform, 360 adding command buttons, cascaded updates, 376 772–774, 773, 774 CD-ROM that comes with the book, assigning macros to, 781–783, 781, contents described, 1098–1104 782, 783 Chart Wizard, 416, 420, 576–578, 576, default and cancel buttons, 577, 578 785–787, 786 charts moving, 91 2-D and, 3–D, 568, 569, 592–593, 594 removing from forms, 990, 990 building better, 592–594, 593, 594 reusable, 924, 925 creating embedded charts, 579–587 4008index.qxd 5/31/01 2:49 PM Page 1144

1144 check boxes • combo list

adding to the toolbox, 579–580, Choose() function, 939, 939 580 clicking. See double-click time limit; chart’s query, 586–587, 587 Shift-clicking creating from freestanding charts, clients 584 Access as client, 269 creating the report or form, OLE client defined, 269 580–581, 581 columnar embedding the chart, 582–584, 583, 584 forms, 386–387, 387 linking fields, 585, 585 (vertical) reports, 410, 411 queries, creating, 581–582, 581 columns creating freestanding charts, 575–578, and PivotTable List, 549, 549 576, 577, 578 changing design from Datasheet view customizing, 588–592 in tables, 284–285, 284 data, deciding which to chart, freezing and unfreezing, 250–251, 570–573, 571, 572 250 data from other programs and, scrolling through, 252 595–597, 596 selecting and arranging in Datasheet elements of, 569–570 view, 248–250, 249 embedded, 574, 574, 575 sorting groups of records by, 1048, 1048 forms, 392, 393 combo boxes, 981–982, 982 freestanding adding to reports and forms, about, 569, 572, 573 483–486, 483 using, 578 selection combo boxes freezing data in, 594–595 creating, 1055, 1055 linked, 574, 575 creating a second, 1059–1061, reports, 416, 416 1060, 1061 types, 568 combo list, 986–987, 986 unlinked, 574, 574 adding null rows to, 1061–1066, check boxes 1063, 1064, 1065 adding to reports and forms, 482–483 adding null rows to a second, 1065–1066, 1065 check box controls for dialog boxes, 770–772, 771, 772 4008index.qxd 5/31/01 2:49 PM Page 1145

command bars • Crosstab Query Wizard 1145

command bars, 803–804, 803 Control Wizard, 89 how created, 790 control wizards, 704–707, 704–707 running macros from, 912–913, 913 controls, 60, 473-510. See also under Command Button Wizard, 90 forms, creating customized; reports, creating customized command buttons ActiveX controls, 501, 610 creating for data entry, 1016, 1016 calculated controls defined, 503 in Form View, 492–493 check box controls for dialog boxes, commands 770–772, 771, 772 automating navigation commands, creating controls and actions in one 976–979, 977 step, 703–709, 703 copying from menus, 812 control wizards, 704–707, 704, 705, duplicating built-in commands, 706, 707 900–901, 900 testing controls, 707, 708 compacting date-modified in tables, 1020–1021, databases, 648–650 1021 defined, 648 defining custom actions and, 712 hard disks, 650 deselecting, 62–63 completed copy defined, 270 macros for, 752–754, 753, 754 conditionals, 838–839 moving to specific controls, 971–974, conditions 973 conditional macros, 928–929 other wizard-created controls, 708–709 controlling the flow of macros with, 929–934, 930, 932 selecting, 62–63 defined, 928 converting old Access databases, 1094, 1095–1096, 1095 opposite conditions, 931 copying data, 261–262 using MsgBox() function as a condi- tion, 934–935, 934, 935 CopyValue, 733–734, 734 connection files, 523–524 counted loops, 942–944, 942, 943 Connection Strings, 523 criterion defined, 307 Contact Management sample database, Crosstab query, 333 138 Crosstab Query Wizard, 334 control panel for personalizing Access, 630–631, 630–631 4008index.qxd 5/31/01 2:49 PM Page 1146

1146 cursors • data

cursors deleting, 260–261 options, 618, 619 records, 260–261 preventing from landing in fields, within a field, 260 64–65, 65 dynamic data defined, 523 custom dialogs entering, 66–68, 68 collecting selection criteria with, grouping in reports, 466, 467–472 1072–1074, 1073 creating more than one group, 470 creating, 1076–1078, 1078 creating with Report Wizard, 468 group headers and footers, 470–471 D grouping without a wizard, 468–470, 468

data. See also Datasheet view; Form hiding duplicate data, 466, 468, view; macros for data maintenance; 471–472, 471 records, sorting moving, 261–262 adding to data access pages, 536–542 network data editing, 671–674, 672, data from related tables, adding, 673, 674 540–542, 541, 542 refreshing network data, 674 data outline tool, 537, 537 replacing in multiple records, field list, 536, 536 299–301, 299, 301 fields, adding, 539–540, 570 security when sharing among users, 666–670, 666–670 tables, adding, 537–539, 538, 539 selecting and deselecting, 259 browsing. See data access pages storage, 38–39, 38 changes and corrections, 68–70, 69 tables and storage, 39–40, 40 changing in tables, 256–258, 257 troubleshooting entry and editing, keys for editing, 257–258 280–283, 281, 282 navigation vs. editing modes, 257 types copying and moving, 261–262 defining in fields, 151–152, 151 data analysis pages, 522 Text data type vs. Number data data outline tool, 537, 537 type, 151 datasheet views and, 13 updating with macros, 904–907, 905, 906 validation rule, 282, 282 4008index.qxd 5/31/01 2:49 PM Page 1147

data access pages • data access pages 1147

via the , 122–124 data, adding to pages, 536–542 creating data access pages, data from related tables, adding, 122–123, 123 540–542, 541, 542 HTML, 123 data outline tool, 537, 537 data access pages field list, 536, 536 Access 2000 vs. Access 2002 and, 520 fields, adding, 539–540, 570 applying themes, 559–561, 559, 560 tables, adding, 537–539, 538, 539 basics, 520–524, 521 grouping records, 550–558 dynamic data shown, 523 adding caption sections to groups, how pages find data, 523–524 555–556, 556 types, 521–522, 521 adding summary fields to group footers, 557–558, 557, 558 vs. pages, 524 removing groups, 558 ways of creating, 524 sections, 528, 550–551, 551 where they reside, 522–523, 522 using fields, 552, 552 browsing, 563–564, 564 using tables, 552–555, 553, 554, creating stand-alone, 561–562 555 creating with Page Wizard, 78–80, 78, including other controls, 558 79, 524–530 PivotTable Lists, adding and chang- browsing new pages, 80, 80 ing, 542–544, 543 grouped pages, 528–530, 528, 529 PivotTable Lists, analyzing data with, one table pages, 526–527, 526, 527 545–549 revising, 530 filtering records, 545–546, 546 starting the wizard, 525, 525 grouping data, 547–549, 548 the Internet and, 122–123, 123 removing groups, 549 creating without Page Wizard, summary values, 546, 547, 547 530–534, 531 using columns to group data, 549, aligning and sizing objects, 534, 549 534 revising, 564–566 body, 531 access data access pages, 564–565 design toolbox, 532–533, 533 other types of Web pages, 565–566, design window, 533–534 565 Page Design toolbar, 532, 532 saving, 561 sections, 531–532 titles, adding to pages, 535, 535 4008index.qxd 5/31/01 2:49 PM Page 1148

1148 Data-Definition query • databases

Data-Definition query, 334 Database Explorer and Access, 102, 103 Data Fails Validation Rule message, 282, Database Splitter Wizard, 128, 668–669, 282 668 data, sorting, 288–290 Database window, displaying with defined, 288 macros, 925–926 quick sorting, 288, 289 Database Wizard returning to original order, 290 choosing database titles and adding pictures, 53–54, 53 sorts within sorts, 289–290, 289, 290 creating databases, 49–51, 50 database administration, 646–663 entering data, 66–68, 68 backing up, 646–648 finishing, 54–55, 55 compacting databases, 648–650 forms styles and, 51, 52 converting from other Access for- mats, 651–655 organizing databases, 42 database administrators defined, 646 revisiting dialog boxes, 55 documenting databases, 656–658, styling of reports, 52–53, 52 657 databases. See also database encrypting and decrypting databases, administration 653–654 automating, 890 repairing databases, 650–651 basics, 38–46 replicating databases, 658–663 data storage, 38–39, 38 converting replicas to design mas- fields, 40, 41 ter, 663 multiple tables, 42–45 creating partial replicas, 660–661, one-to-many relationships, 661 43–44, 44 creating replicas, 658–660 primary key fields, 44, 44 updating replicas, 662 tables for data storage, 39–40, 40 restoring databases from backups, 648 terminology, 41 viewing database attributes, 654–656, closing, 27 655, 656 closing with macros, 926–927 database diagrams Database windows, 13, 14, 16–20 defined, 880 custom form windows, 17 in NorthwindCS project, 880–882, 880, 881 objects in, 16–17 tips for using, 57 4008index.qxd 5/31/01 2:49 PM Page 1149

databases, creating • Datasheet view 1149

uncovering hidden, 17 Performance Analyzer, 640–643 using to manage database objects, queries, 642–643 20–21 tables, 641–642 view options, 18 splitting with Database Splitter Wiz- working with groups of window ard, 668–669, 668 objects, 19 vs. tables, 128 defined, 9, 13, 41, 128 databases, creating, 128–130 exporting to other Access databases, basic steps, 129 230–231 blank importing and linking, 202–204, 203 advantages and disadvantages of, installing wizards, builders and menu 129 add-ins, 628–629, 629 basic steps in creating, 130–133, objects 130, 131, 132 defined, 13, 14 File New Database window, 131, listed, 13–15 132–133 managing, 20–21 blank vs. using Database Wizard, 129 Performance Analyzer Wizard, 191 changing properties, 140–142, 141 opening, 9–16 creating with Database Wizard from window, 6, 9 basic steps, 134–137, 134–137 from New File task pane, 5, 9 Contact Management Lessons sam- from Windows Desktop, 9–12, 10 ple database, 49–51, 50 personalizing startup options, datasheet forms, 388, 388 625–628, 626 Datasheet view, 252–253 samples. See also Fulfill 2002 closing, 73 included with Access, 137–140, customizing, 246–251, 246 860–861 arranging rows and columns, on CD-ROM that goes with this 249–250 book, 1098–1099 changing several appearances at showing entire structure, 355, 356 once, 248 size changes, 159 datasheet rows and columns, 248 speeding up, 636–644 freezing and unfreezing columns, forms, reports, printing, 643–644 250–251, 250 general performance, 636–640 saving or canceling changes, 251 4008index.qxd 5/31/01 2:49 PM Page 1150

1150 datasheets• Design view

selecting columns, 249, 249 decimal places specifying number of using the Formatting toolbar, digits in fields, 153 247–248, 247 decision functions, 938 Datasheet view decision structures, 941 changing table design from, decrypting databases, 653–654 283–286, 284 DefaultValue property, 1023–1026, 1026 for viewing records, 238, 238, 239 Delete query in opening tables and, 13, 159, cascaded deletes, 380–381 160, 160 defined, 333, 374 switching between Form view and, 240–241, 241 deleting records from tables, 379–381 viewing data in, 240 deselecting controls, 62–63 lookup fields in, 173 design master datasheets moving or renaming, 660 changing options, 612–613, 612 vs. copies, 658 navigating, 252–253 design tools, 436, 439–448, 439–440 printing, 327–330, 327, 328, 329 changing reports and forms sizes, 447, 448 saving filters with, 306 choosing styles, 440–442, 441 dates Design view toolbars, 442, 443 adding current to reports and forms, 486–487, 486 field list, 442, 443 date-modified fields and controls in grid, 446–447 tables, 1020–1021, 1021 property sheets, 443–445, 443 date-stamping changed records, 1019 ruler, 445 filtering, 321, 321 toolbox, 442, 443 dBASE design tools. See tools exporting to, 229 Design view, 61–62, 61, 62 importing or linking files, 199–200 opening tables and, 159, 161, 161 DCount() function, 1012–1013, 1013 switching between Form view and, DDE 752 DDE operations, 611–612, 612 toolbars, 439, 440, 442–443 OLE/DDE timeout (sec), 612 undoing mistakes in, 439 vs. datasheet and form views, 242 4008index.qxd 5/31/01 2:49 PM Page 1151

dialog boxes • enabling 1151

dialog boxes DoCmd command for running macros, Action Failed dialog box, 950, 950 915–916, 916 in common with Microsoft Office, DoCmd.Restore command, 93 108, 108, 109 documenting databases, 656–658, 657 dialog boxes, customizing domain aggregate functions, 368, 369 assigning macros to dialog box but- double-click time limit, 923 tons, 781–783, 781, 782, 783 dragging and dropping creating macro actions, 776–781, 776 hyperlink addresses, 267 cancel printing macro, 776–777, OLE and, 275–276 777 other office programs and, 116, 116 preview reports macro, 777–779, 778, 779 to other programs, 276 print reports macro, 779–781, 780, drop-down buttons, 22, 22 781 drop-down lists, 22, 22, 24, 24 creating with check boxes and com- duplicate key message, 281, 281 mand buttons, 770–776 dynamic data defined, 523 adding command buttons, dynasets 772–774, 773, 774 defined, 332 check box controls, 770–772, 771, 772 viewing, 340 creating, 770, 770 printing, saving and closing, 774–776, 774, 775 E embellishing, 785–787

border style, 784–785, 785 e-mailing objects, 235. See also Send To default and cancel buttons, Edit/Find options, 613–614, 613 785–787, 786 editing mode, 257, 257 modal and pop-up properties, 783–784, 784 embedding vs. linking, 270, See also under charts dialogs. See custom dialogs empty strings, 153 dictionaries for spell check, 298 enabling Dirty Property, 1018 defined, 1091 Disk Defragmenter, 650 old Access databases, 1094–1095, docking toolbars, 25, 25, 791 1095 4008index.qxd 5/31/01 2:49 PM Page 1152

1152 encrypting databases • Extensible Markup Language.

encrypting databases, 653–654 running macros by trapping events, Enter Key Behavior, 278 917–918, 917 error messages Visual Basic and, 824–825, 825, 826 macros for building custom, 836–837, Excel. See Microsoft Excel 836, 837 Expenses sample database, 139 Visual Basic for building custom, exporting, 226–236 838–847 defined, 194–195 building error messages, 845–847 from Access, 112 flow control on error, 843–845 from nonsupported programs, 236 flow control statements, 838–843 objects, 227–228 testing error messages, 847–848, options 848 Export, 226 errors and macros OfficeLinks, 226–227, 233–234, avoiding macro errors, 963–964 233 error codes, 958–959 Send To, 227, 234–236, 235 error handler, 960–963, 961 text or Excel files, 228–229 error-handling codes, 960 to HTML or HTX files, 231–232, 232 kinds of macro errors, 948–951, 950 to Lotus 1-2-3, Paradox or dBASE, 229 using macros to deal with errors, 836 to ODBC databases, 229–230 Event Management sample database, to other Access databases, 230–231 138 to XML, 232–233, 233 events Expression arguments, 898–899 assigning CopyValue, 733–734, 734 expressions assigning macros to, 718 creating calculation expressions, control events, 702 368–371, 370, 371 defined, 699 evaluating with Immediate pane, event handlers, 917 954–955, 955 event procedures, 864–865, 865, specifying selection criteria for filter- 1099–1100 ing, 315 event properties, 699–701, 700, 701 using operators and wildcard charac- form events, 701–702 ters for, 316–318 relationship to applications, 699 Extensible Markup Language. See XML 4008index.qxd 5/31/01 2:49 PM Page 1153

Favorites, adding • filters and filtering 1153

naming, 153, 722 F New Values field, 166 NorthwindCS project and, 882 Favorites, adding, 11 optional for tables, 50, 51 Field Builder Wizard, 151 preventing cursor from landing in, field lists and data access pages, 536, 536 64–65, 65 fields properties, changing in dynasets, adding to data access pages, 539–540, 346–347, 347 570 restrictive field properties, 167 AutoNumber fields, 187–190, 188, row fields in PivotTable, 598, 599, 190 600, 600 bound controls, 448–449 scrolling through, 252 calculated fields, 149 selecting, 258–259, 258, 259 caution on changing or deleting, 283 totals or detail fields in PivotTable, choosing fields to filter, 314–315 598, 599, 600, 600 choosing for viewing queries, 82–83, troubleshooting inappropriate values 83 in, 281 column fields in PivotTable, 598, 599, file extensions, 131 600, 600 File New Database window, 131, date-modified in tables, 1020–1021, 132–133 1021 files defined, 40, 41, 51 creating new as copies, 6 defining, 149, 150–151, 150 length of file names, 103 Field Builder Wizard, 151 filters and filtering defining properties, 152–155 creating complex filters, 314–324 deleting data from, 260 accepting several values from fields field lists, 439, 440, 442–443 filter sample, 322, 322 filter fields in PivotTable, 598, 599, choosing fields to filter, 314–315 600, 601 filtering dates filter sample, 321, filtering and 321 accepting several values from finding parts of fields filter sample, fields, 322 319–320, 319, 320 using wildcards to find parts of, finding ranges of values filter 319–320, 319, 320 sample, 320–321, 320, 321 4008index.qxd 5/31/01 2:49 PM Page 1154

1154 find and replace for replacing data in multiple records • form wizards

saving filters and queries, 322–323 conditionals, 838–841 specifying selection criteria, loops, 839–841 315–319 flow of execution defined, 928 creating filters, 301–302 footers filter queries. See under queries group footers filtering out unwanted records, data access pages and, 551, 301–314 557–558, 557, 558 Advanced Filter/Sort, 311–314, in forms and reports, 469, 312, 313 470–471, 551 by selection or exclusion, 303–305, in forms and reports, 462–467, 465, 303, 304 466 Filter by Form, 306–311, 307, 309, foreign key fields, 182 310, 314 Form Template, 614–615 Filter For Input, 302–303 Form view removing or reapplying filters, 305 creating forms, 239 saving filters with datasheets or forms, 306 defined, 238, 238 filtering records, 71–72 switching between Datasheet view and, 240–241, 241 filtering records with PivotTable List, 545–546, 546 switching between Design view and, 752 macros to apply and remove filters, 1056–1058, 1057, 1058 viewing data in, 240 troubleshooting, 323–324, 324 Form Wizard, 332, 396, 397–398, 397–398 find and replace for replacing data in multiple records, 299–301, 299, 301. form wizards, 386–400 See also Edit/Find customizing styles, 387 Find Duplicates Query Wizard, 334 how they work, 399–400 Find Unmatched Query Wizard, 334 types of forms created by, 386–393 FindRecord, 982–983 charts, 392, 393 flow control columnar forms, 386–387, 387 Visual Basic and flow control on datasheet forms, 388, 388 error, 843–845 hierarchical forms, 389–392, 389, Visual Basic for building custom flow 390 control statements, 838–843 PivotTables, 393, 393 branches, 841–843 tabular forms, 387–388, 387 4008index.qxd 5/31/01 2:49 PM Page 1155

Formatting (Datasheet) toolbar • forms 1155

using to create forms, 394–400 navigating to other forms with Form Wizard, 397–398, 397, 398 macros, 991–993, 992 options, 394, 395–396, 395 opening, 66, 205, 400–401 Formatting (Datasheet) toolbar, opening and hiding with macros, 247–248, 247 921–922 forms, 614–615, 614. See also form wiz- preventing cursor from landing in a ards; Forms/Reports options; subforms; field, 64–65, 65 switchboards printing, 327–330, 327, 328, 329 active and non-active forms and sub- removing buttons from with macros, forms, specific controls on, 971–974, 990, 990 973 requering with macros, 1037–1039, adding hyperlinks, 88 1038 adding review buttons, 997, 997 saving, 65, 400 adding Visual Basic (VB) code, saving filters with, 306 92–94, 93 sections, 462–464, 463, 464 attaching custom menus to, 814–815 setting data values on, 897–898 closing, 65, 73, 239–240 SetValue and macros, 899 closing and unhiding with macros, speeding up to increase database 924–925, 1001 speed, 643–644 command buttons, adding, 88–91, styles 89, 90 changing, 406–407, 407 creating selecting in Database Wizard, basic forms, 59–60, 60 51–52, 52 instant forms, 512 subforms, 405–406 with Form view, 239 switchboard form, customizing, without wizards, 437–439, 438 94–95, 94, 95 defined, 14 synchronizing with macros, form design, modifying and saving, 993–1004 60–64, 61, 62 basics, 993–997, 994 Forms/Reports options, 614–615, 614 keeping forms synchronized, lightweight forms, 927 998–1001, 999, 1000 Main Switchboard options, 57–58 review buttons to forms, 997, 997 naming, 722 synchronizing reports to forms, 1002–1004, 1002, 1003 navigating and editing in, 401–404 toolbars, attaching to, 801–802, 802 4008index.qxd 5/31/01 2:49 PM Page 1156

1156 forms, customizing • forms, customizing

forms, customizing controls, duplicating, 455 adding custom controls, 473–510 copying properties, 457–458 calculated controls, creating, fonts, colors, borders, appearance, 503–506, 504 455–456, 455 changing default properties for Help, menus and prompts, adding, toolbox tools, 477–479 458–460, 459, 460 combo boxes and list boxes, order, controlling, 456–457, 483–486, 483 457 command buttons, 492–493 design tools, 439–448, 439, 440 current date and time, 486–487, Design view toolbars, 442, 443 486 field list, 442, 443 drawing frames around controls, grid, 446–447 487–488 property sheets, 443–445, 443 front-to-back controls order, changing, 502–503, 503 reports and forms sizes, changing, 447, 448 hyperlinks, 490–492, 491 ruler, 445 labels, 479 styles, choosing, 440–442, 441 lines, 487 toolbox, 442, 443 option groups, 480–482, 480 designer skills, 448–461 page breaks, 488–490, 489 bound controls (fields), adding, pictures, sounds, other objects, 448–449 495–502, 496, 498, 502 controls, deleting, 451 presto change type, 487 controls, grouping, 452–453 subforms, adding, 506–509, 506, 507, 509 controls, moving, 452 tab controls, 493–495, 494, 495 controls, resizing, 453 text boxes, 479–480 controls, sections, forms and reports, selecting, 450–451, 450 toggle buttons, option buttons and check boxes, 482–483, 483 fields from other tables or queries, showing, 510 using the toolbox, 474–477, 474, 476, 477 forms and reports design help, 516–518 aligning controls, 454 putting preprinted forms on screens, AutoFormat styles, customizing, 510–516 460–461, 460 creating simple forms, 512 4008index.qxd 5/31/01 2:49 PM Page 1157

Forms/Reports options • groups and grouping 1157

creating tables from preprinted entering orders, 1126–1136 forms, 511–512, 512 entering new orders, 1127–1133, form letters, mailing labels, etc., 1127-1133 515–516 tools for managing, 1133–1136, placing on screens, 512–513, 513 1134, 1135, 1136 printing reports, 514–515 getting started with, 1107–1108, scanning preprinted forms, 511, 1108, 1109 511 managing product lists, 1123–1126, size and position controls, 514, 514 1123, 1124, 1126 sections, headers and footers, functions 462–473 decision functions, 938–941 data, grouping in reports, 467–472, Choose() function, 939, 939 468, 472 IIf() function, 938, 939 form sections, 462–464, 463, 464 Switch() function, 939–940, 940 headers and foots, adding and MsgBox() function removing, 467 to collect user input, 936–938 hiding sections, 475 using as conditions, 934–935, 934, report sections, 464–466, 465, 466 935 sizing sections, 472–473 Visual Basic and, 829–830 specifying record source, 461–462 switching to Design view, 436–437 Forms/Reports options, 614–615, 614 Fulfill 2002, 1106–1136 G about, 1106 global find and replace for large address book, 1108–1123, 1109 amounts of data, 300 entering information, 1109–1116, global macros, 924–925 1110- 1113, 1115, 1116 global shortcut menus, 816, 816 limiting display, 1120, 1120 grid design tool, 446–447 navigating in, 1116–1118, 1118 groups and grouping, 412, 413. See also printing from, 1120–1123, 1120, macros for working with groups of 1121 records searching, 1118–1119, 1119 built-in user and groups, 682 copying Fulfill to hard disks, defined, 679 1106–1107 4008index.qxd 5/31/01 2:49 PM Page 1158

1158 hardware • HTML

grouped data access pages, creating, tweaking to increase database speed, 528–530, 528, 529 637–639, 638 grouping controls, 452–453 headers grouping macros, 726–728, 727, 728, group headers 909 data access pages and, 551 grouping records on data access in forms and reports, 469, 470–471 pages, 550–558 in forms and reports, 462–467, 465, adding caption sections to groups, 466 555–556, 556 Help, 27–34 adding summary fields to group footers, 557–558, 557, 558 contents, 29, 30 removing groups, 558 exiting, 34 sections, 528, 550–551, 551 hint boxes, preview areas and status bar help, 31, 31 using fields, 552, 552 Microsoft Office and, 111 using tables, 552–555, 553, 554, 555 , 29, 33–34, 33 in reports, 466, 467–472 searching, 32, 32 creating more than one group, 470 sources, 111 creating with Report Wizard, 468 summary, 28 creating without a wizard, the Web and, 111 468–470, 468 windows, 30, 31 headers and footers, deleting, mov- hierarchical forms ing or changing, 470–471 basics, 389–392, 389, 390 macro groups, 909 navigating, 405–406 of objects, 19 highlighting, 63 working with groups, 684–687, 686, Hijri (Islamic) calendar, 618 687 hint boxes, 31, 31 HTML exporting and data access pages, 525 H exporting to HTML files, 231–232, 232 hardware importing or linking files, 220–222, checking prior to Access installation, 220, 221 1090 the Internet and, 123 4008index.qxd 5/31/01 2:49 PM Page 1159

HTX • importing 1159

HTX Immediate pane defined, 231 and macros, 954–956, 955, 956, 957 exporting to, 231–232, 232 and values, 955–956, 956, 957 hyperlinks import specifications, 217–220, 217, 218 adding to forms, 88 Import Spreadsheet Wizard, 210, 211, adding to forms and reports, 212, 213 490–492, 491 importing changing default appearance with defined, 194 Web options, 617 from nonsupported programs, 236 controls and, 712 from other databases, 195–204 creating a command button hyper- dBASE files, 199–200 link, 493 ODBC databases, 200–201 using in tables, 262–268, 263 other Access databases or projects, copying and pasting addresses, 267 202–204, 203 creating bookmarks, 267 Paradox tables, 198–199 deleting addresses, 268 tables, 196–198, 196, 197 dragging and dropping, 267 wizards and, 204 editing addresses, 268 HTML files, 220–222, 220, 221 entering addresses, 264 imported tables Insert Hyperlink tool, 264–265, refining design, 223 265 renaming, 205 typing in addresses, 266 spreadsheets and text files, 208–220 Hypertext Markup Language. See HTML basics, 208–210, 209, 210 compatible formats, 208 managing import specifications, I 219–220 spreadsheets, 210–213, 211, 212, icons options, 18, 18 213 IIf() function, 938, 939 text files, 213–217, 214, 215, 216 images, converting freestanding charts using import specifications, to, 595 217–219, 217, 218 Immediate If function (IIf() function), to Access, 112 938, 939 4008index.qxd 5/31/01 2:49 PM Page 1160

1160 in-place editing defined • libraries

to charts from other programs, 595–597, 596 J troubleshooting, 223–226, 224 existing tables, 225–226 joins, 183 new tables, 225 changing join type, 354–355, 354 records, 223–224, 224 deleting, 355 with other databases, 195–204 join lines, 338, 350 XML documents, 222–223 types, 351–354, 351–354 in-place editing defined, 275 indexes defining, 156–157, 157 K speeding up databases with, 639 information storing in databases, 38–39, Keyboards options, 618–619, 618 38 keys, 924 inner joins, 351, 353–354, 354 Input masks in Order Entry database, 166–167 FaxNumber, 167 L PhoneNumber, 166, 167 Label Wizard PostalCode, 166 preparing mailing labels for reports, Input Mask Wizard, 154 74–75, 75 properties, 67 preparing labels using report wizards, Insert Hyperlink tool, 264–265, 265 428–430, 429 insertion points. See cursors labels. See also Label Wizard; mailing interactive reporting pages, 522 labels international options, changing, adding to reports and forms, 479 617–618, 617 resizing, 63 Internet, sharing Access data and, lassoing, 62 122–124 Ledger sample database, 139 . See Microsoft Internet libraries Explorer Add-In Manager for library installa- Inventory Control sample database, 139 tion, 628–629, 629 Item argument, 896–898 library databases, 628 4008index.qxd 5/31/01 2:49 PM Page 1161

lightweight forms • Lotus 1-2-3 1161

lightweight forms, 927 linking fields, 585, 585 lines, adding to forms and reports, 487 list boxes, 483–486, 483 Link Text Wizard, 214, 217 locking Linked Table Manager, 206–207, 206 avoiding locking conflicts, 640 linking record-locking, 640, 676–678 defined, 194 logic errors in macros, 948, 950–951 HTML files, 220–222, 220, 221 logical navigation. See under macros, linked tables, 204–208 automating navigation with deleting the link, 207–208 logons Linked Table Manager, 206–207, logon dialog box, 692–693 206 logon password tab, 687, 687 renaming, 205 security and, 680–681, 681 setting properties, 204–205 lookup fields, 172–180 speeding up, 205–206 about, 172–173, 172, 178–179 spreadsheets and text files, 208–220 field names list, 174–175 basics, 208–210, 209, 210 Lookup properties, 179–180 compatible formats, 208 queries, 173–174 managing link specifications, setting up, 175–178, 177, 178 219–220 tables, 174 spreadsheets, 210–213, 211, 212, using in filters, 313–314 213 values lists, 174 text files, 213–217, 214, 215, 216 vs. AutoLookup queries, 356 using link specifications, 217–219, 217, 218 Lookup properties sheet, 177–178, 177, 178 vs. embedding, 270 Lookup Wizard, 175–176 with other databases, 195–204 loops, 941–946, 942–945 dBASE files, 199–200 defined, 839 ODBC databases, 200–201 loop structure, 941 other Access databases or projects, 202–204, 203 Lotus 1-2-3 Paradox tables, 198–199 embedding charts from, 595, 597 tables, 196–198, 196, 197 exporting to, 229 wizards and, 204 4008index.qxd 5/31/01 2:49 PM Page 1162

1162 macro flow diagrams • macros

duplicating built-in commands, M 900–901, 900 exceptional, 965–967 macro flow diagrams, 908, 908, 909 Expression argument, 898–899 macro groups, 909 Item argument, 896–898 macros keystrokes, sending, 903–904 assigning to dialog box buttons, messages, sending, 901–903, 901, 781–783, 781, 782, 783 902 cancel printing macro, 776–777, 777 SetValue action to hold temporary conditional execution of, 721–726, values and forms, 899 722–726 values, setting, 895–896 converting macro menus to Access Macro toolbar, 892–894, 893, 894 2002 menus, 817 Macro window, 890–892, 891, 892 creating, 712–716, 712–715, 718, 907–910 macros to run at startup, creating, 739–740 macro flow diagrams, 908, 908, 909 macrosheets, 909 sequential flow, 910 manipulating objects with, 920–927, 920 defined, 15 preview reports macros, 777–779, deleting, 729 778, 779 editing, 728–729 print reports macros, 779–781, 780, for building custom error messages, 781 836–837, 836, 837 printing, 953 forms navigation, 920–927, 920, 923 program execution, 928–946 generic macros, 735–737, 735, 736, built-in decision functions, 737 938–941, 939, 940 grouping, 726–728, 727, 728 conditions, 928–935, 929, 930, learning about, 740 932, 934, 935 macro actions, 718–721, 895–907 loops, 941–946, 942, 943, 944, 945 arguments, 895–899 MsgBox() function, 936–938 common actions, 895–896 programming, 959–960 defined, 895 referring to controls from, 729–737 displaying current data, 903–907, CopyValue, 733–734, 734 905, 906 SetValue action, 729–732, 730, 731 4008index.qxd 5/31/01 2:49 PM Page 1163

macros, automating navigation with • macros, dealing with errors 1163

typing lengthy identifiers, returning to previous record, 732–735, 733 987–989, 989 running macros, 717, 910–920 physical navigation among records, at startup, 914 974–979 by trapping events, 917–918, 917 automating default navigation but- tons and menu commands, determining when macros play, 976–979, 977 716–718, 716, 717 automating keystroke navigation, documenting, 918–919, 919 975–976 from command bars, 912–913, 913 startup macros, 1004–1006, 1004, from other macros, 912 1005 from shortcut keys, 913–914, 914 synchronizing forms, 993–1004 from various windows, 910–912, adding review buttons to forms, 911, 915–916, 916 997, 997 from VBA procedures, 917 basics, 993–997, 994 toolbars and macros to show or hide, closing forms, 1001 800–801, 801 keeping forms synchronized, troubleshooting, 737–739 998–1001, 999, 1000 Visual Basic and synchronizing reports to forms, converting to Visual Basic, 832 1002–1004, 1002, 1003 macros vs. Visual Basic, 959 through controls, 970–974 macros vs. Visual Basic code, moving to specific controls on 740–741 active forms and subforms, 971–973, 973 macros, automating navigation with, 969–1006 moving to specific controls on non-active forms and subforms, logical navigation among records, 973–974 980–993 moving with records, 974 adding logical navigation with forms, 991–993, 992 macros, dealing with errors, 947–967 finding specific records, 980–987, avoiding errors, 963–964 980, 982, 983, 984 exceptional macro actions, 965–967 logical navigation defined, 980 kinds of errors, 948–951, 950 removing buttons from forms with run-time errors, 957–963 logical navigation, 990, 990 error codes, 958–959 error handler, 960–963, 961 4008index.qxd 5/31/01 2:49 PM Page 1164

1164 macros for data maintenance • macros for working with groups of records

macro programming vs. Visual duplicate primary key values, Basic programming, 959–960 1011–1013, 1013 troubleshooting, 951–957 ValidationRule properties, breakpoints, 952–953 1009–1010, 1010, 1011 Single Step, 951–952, 952 macros for working with groups of records, 1041–1086 using MsgBox action, 953, 954 finding records to print, 1066–1071, Visual Basic, 954–956, 955, 956, 1067, 1069, 1071 957 finding with Query By Form, macros for data maintenance, 1052–1058 1008–1039 automating selection, 1054–1058, adding new records, 1015–1017, 1055, 1057, 1058 1016, 1035–1039, 1038, 1120 selecting interactively, 1052–1054, carrying values forward, 1022–1023 1053, 1054 data in open forms, 1035 modifying, 1081–1086 DefaultValue property, 1023–1026, OpenQuery actions, 1081–1086, 1026 1083, 1084, 1086 deleting records, 1027–1034 selecting with custom dialogs, cascading deletes, 1031–1034, 1071–1081, 1073, 1075 1031, 1033, 1034 creating custom dialogs, deciding whether or not to delete, 1076–1078, 1078 1027 creating filter queries, 1075–1076, other methods for deleting records, 1076 1034 setting criteria for filter queries, preventing or allowing deletions, 1078–1081, 1081 1027–1031, 1028–1031 selecting with multiple criteria, saving changes, 1018–1022 1058–1066 date-stamping changed records, adding null rows to combo lists, 1019–1021, 1021 1061–1066, 1063, 1064, 1065 saving new records, 1021–1022 second selection combo box, undoing changes, 1017–1018 1059–1061, 1060, 1061 validating data, 1008–1015 sorting records automatically, 1044–1052 displaying primary key violation form, 1013–1015, 1014 complex sorts, 1048–1052, 1051 OrderBy and OrderByOn property, 1045–1046 4008index.qxd 5/31/01 2:49 PM Page 1165

Mailing Label Wizard • Microsoft Excel 1165

sorting by any column, 1048, 1048 custom menus Triple-State toggle button, attaching to forms or reports, 1045–1048, 1045, 1046 814–815 sorting records interactively, 1044 creating, 808–810, 809 Mailing Label Wizard. See Label Wizard customizing built-in menus, 813 mailing labels displaying, 808 creating with report wizards, 428, 431 menu add-ins, installing, 628–629, designing, 416, 417 629 formatting postal codes for, 430–431 menu bars Label Wizard, 428 adding built-in menus to, 810, 810 preparing, 74–75, 75 adding custom menus to, 810–812, 811, 812 Main Switchboard. See also switchboards editing custom, 815 AddressBook and, 757–762, 758–762 global menu bars, displaying, 814 buttons on, 59 in common with Microsoft Office, NwindMacros2002 sample database 107, 108 and, 920, 920 positioning the , 25, 25 opening with macros, 754–755, 755 saving custom, 813 options, 57–59 short and long drop-down lists, Main Switchboard’s Preview 24, 24 Reports option, 58–59, 58 menu commands, copying from, 812 options buttons, 59 shortcut menus, creating, 815–817, Make-Table queries 815, 816 creating, 382 message box, 901. See also MsgBox defined, 333, 374, 381 Microsoft Excel memo fields, 277–278 converting worksheets to Access memory tables, 118 increasing to increase speed, 637 creating forms or reports from work- insufficient, 111 sheets, 118–120, 119 optimizing usage, 638 embedding charts from, 595, 597 menus exporting to Excel files, 228–229 combining with toolbars, 803–804, PivotTables and, 598 803 using Access data and, 117–120, 119 4008index.qxd 5/31/01 2:49 PM Page 1166

1166 Microsoft Graphics, embedding charts from • null value in index message

Microsoft Graphics, embedding charts for troubleshooting macros, 953, from, 595–597, 596 954 Microsoft Help, 111 sending messages and, 901–903, Microsoft Internet Explorer, browsing 901, 902 data access pages with, 563–564, 564 MsgBox() function Microsoft Office, 105–111 to collect user input, 936–938 bars in common with Access, using as conditions, 934–935, 934, 107–108, 108 935 dialog boxes in common with Access, 108–109, 108, 109 displaying, 106 Help, 111 N Microsoft Office Shortcut bar, 105–107, 105, 106, 107 navigation mode, 257, 257 office tools in common with Access, networks and data editing, 671–674, 109–110 672, 673, 674 Microsoft Server SQL databases, con- New File task pane, 5–6, 5 necting projects to, 885 New Values field, 166 Microsoft SQL Server Desktop Engine, Northwind Sample Access Project, 860 installing, 874 Northwind Sample Database, 860. See Microsoft Visual Basic. See Visual Basic also sample databases (VB) NorthwindCS sample Access project and Access, database diagrams, 880–882, 880, 881 102–105, 103, 104, 105 installing Microsoft SQL Server Desk- similarity in appearance with Access, top Engine, 874 104, 104 installing the sample project, special effects and Access, 104, 104 874–875, 875 Microsoft Word and sharing data with queries, 877–880, 877, 878, 879 Access, 120–122, 121 tables, 876, 876 modal properties and dialog boxes, 783–784, 784 where to find the sample project, 860–861 modules defined, 15 Novalis, Susann, 890 MsgBox null value in index message, 281 message boxes and, 901 MsgBox action 4008index.qxd 5/31/01 2:49 PM Page 1167

NumWord( ) • OLE 1167

NumWord(), 1000 objects’ appearances, 272, 272 NwindMacros2002 sample database, 920 source program, 270 Visual Basic and, 824 ODBC databases O exporting to, 229–230 importing and linking and, 200–201

Object Browser, 855 speeding up linked tables, 205–206 objects Office Assistant, 29, 33–34, 33 adding to forms and reports, OfficeLinks 495–502, 496, 498, 502 copying Access data to Office pro- aligning and sizing objects, 534, 534 grams, 117, 117 bound and unbound, 277, 495 exporting with, 226–227, 233–234, 233 closing, 17 OLE, 112–115 defined, 13 object fields, adding controls, 501 groups of objects, 19 objects vs. database objects, 268 in database windows OLE automation, 850–857 changing views, 18, 18 closing automation sessions, 856, working with, 16 857 managing database objects, 20–21 creating basic objects, 850–854, naming rules for, 147–148 851, 852, 853 options, 624 working with basic objects, security objects, defined, 679 854–856 using OLE to store, 268–277, 269 OLE client defined, 269 activating and editing objects, 273 OLE/DDE timeout (sec), 612 creating objects prior to inserting, sharing data with Access 275 clipboard use, 112–113 cut-and-paste for inserting parts of Insert menu commands, 113–115, objects, 273–274, 274 114, 115 drag-and-drop, 275–276 using to store pictures, sounds, other inserting objects easily, 270–271, objects, 268–277, 269 271 about OLE servers and clients, linking vs. embedding, 270 269–270 4008index.qxd 5/31/01 2:49 PM Page 1168

1168 one-to-many relationships • permissions

activating and editing objects, 273 outer joins, 351–352, 351, 352 creating objects prior to inserting, ownership and security, 684 275 cut-and-paste for inserting parts of objects, 273–274, 274 drag-and-drop, 275–276 P inserting objects easily, 270–271, 271 page breaks, adding to forms and linking vs. embedding, 270 reports, 488–490, 489 objects’ appearances, 272, 272 Page Down, 69 source program, 270 page numbers, adding to forms and reports, 489–490, 489 one-to-many relationships, 43–44, 44 page setup, when printing forms or OnNotInList property, 960 datasheets, 327–328, 328 Open dialog box, 10, 10 Page Up, 69 OpenQuery action, 1081–1086, 1084 Page Wizard, 78–79, 78, 79 OpenReport macro action, 1072, 1074, pages 1075 changing options, 619–620, 620 optimistic locking, 677 defined, 15 option buttons, adding to reports and forms, 482–483, 483 Paradox option groups, adding to reports and exporting to, 229 forms, 480–482, 480 importing or linking tables, 198–199 Order Entry sample database tables, 139, parameter queries, 1072, 1073 164–172, 165 Partial Replica Wizard, 660–661, 661 Customers table, 165–167, 165 Pass-Through query, 333 Employees table, 170, 170 password security, 693–694, 694 Order Details table, 169–170, 169 Performance Analyzer, 640–643, 641 Orders table, 168–169, 168, 169 Performance Analyzer Wizard, 191 Payments table, 170–171, 171 permissions Products table, 167, 167 defined, 679 small Order Entry tables, 171–172, granting, 679, 680 171 ownership, 684, 688–689, 688 OrderBy and OrderByOn properties, 1044–1045 viewing, 687–688, 687 4008index.qxd 5/31/01 2:49 PM Page 1169

Personal IDs (PIDs) • printing 1169

Personal IDs (PIDs), 685 basics, 568 pessimistic locking, 677 creating with PivotTable Wizard, phone numbers, formatting for labels, 602–605, 603, 604, 605 430–431 creating without wizards, 601–602, photographs 601 linking or embedding, 280 defined, 598 sizing, 278–280, 278 sample created by PivotTable Wizard, 598–600, 598, 599, 600 physical navigation, 974. See also under macros, automating navigation with understanding buzzwords and proce- dures, 600–602 pictures Plug-and-Play screen resolution, 103 adding to databases, 53–54, 53, 54 pop-up properties and dialog boxes and, adding to forms and reports, 783–784, 784 495–502 postal codes, formatting for mailing adding background color, 500 labels, 430–431 background pictures, 498–499, 498 preview areas, getting help from, 31 images, 497–498, 498 primary key fields non-bitmap pictures, 499–500 defined, 44, 44, 156 size control, 501–502, 502 in sample Order Entry Database, 166 unbound pictures, 496–497, 496 setting, 156, 156 formats, 499 primary keys pictures. See OLE, using to store pictures, displaying primary key violation sounds, other objects form, 1013–1015, 1014 PIDs. See Personal IDs duplicate primary key values, PivotChart View, 160 1011–1013, 1013 basic capabilities, 242 printing PivotTable Lists cancel printing macro, creating, adding to data access pages, 542–544, 776–777, 777 543 changing printer properties, 328–329, analyzing data with, 545–549 329 PivotTable View, 160, 242 groups of records with macros, 1066–1071, 1067, 1069, 1070 PivotTable Wizard, 598–600, 598, 599, 600 objects, 21 PivotTables, 393, 393 page setup, quick prints, 327–328 4008index.qxd 5/31/01 2:49 PM Page 1170

1170 procedures and Visual Basic • property sheets

print margins, 615–616, 616 named instances of SQL Server 2000 print previews, 21, 76–77, 77 server and, 872 attaching custom toolbars to, opening, 9–16 802–803, 802 from Microsoft Access window, 6, 9 previewing, 325–326, 325, 326 from New File task pane, 5, 9 print reports macro, 779–781, 780, from Windows Desktop, 9–12, 10 781 opening existing, 885 print settings, 329 projects tables defined, 873 printing technical documentation sample NorthwindCS project, about applications, 868, 868, 869 873–882 quick prints, 325–330 database diagrams, 880–882, 880, previewing printouts, 325–326, 881 325, 326 installing Microsoft SQL Server printing forms or datasheets, Desktop Engine, 874 327–330, 327, 328, 329, 330 installing the sample project, reports, 76–77 874–875, 875 speeding up to increase database queries, 877–880, 877, 878, 879 speed, 643–644 tables, 876, 876 procedures and Visual Basic, 828–829 where to find the sample project, projects 860–861 .adp files and, 9 Proper() function, 1000 basics, 872–873 properties closing, 27 changing controls properties, connecting projects to Microsoft 443–445, 443 Server SQL databases, 885 changing in databases, 140–142, 141 creating new, 6, 882–885, 883, 884 copying to other controls, 457–458 defined, 9, 15–16, 128, 872 searching for, 142 deploying, 885 property rights, 751 elements of Access projects defined, property sheets, 443–445, 443 873 importing and linking and, 202–204, 203 4008index.qxd 5/31/01 2:49 PM Page 1171

QBE (query-by-example) grids • queries 1171

crosstab queries, 371–374, 372, 373 Q defined, 13–14, 332 fields to view, choosing, 82–83, 83 QBE (query-by-example) grids, 311, 312, 314–315 filter queries arranging, 319 creating, 1054, 1075–1076, 1076 filling in, 345–346 setting criteria, 1056, 1078–1081, 1081 using asterisks in, 346 opening saved queries, 342 queries parameter queries, 1072, 1073 action queries query design windows, 335, 335, Append queries, 377–379, 377 338–339 basics, 374–375 query design windows toolbars, cascaded updates, 376 342–345, 342–345 creating, 1083–1084, 1084 query wizards, 334–335 Delete queries, 379–381, 379 records to view, choosing, 83–84, 84 Make-Table queries, 381–382 refining, 345–356. See also tables, running with OpenQuery action, joining 1081–1086, 1084 changing field properties, 346–347, troubleshooting, 382–383, 383 347 update queries, 375–376, 376 changing query properties, 347, 347 adding fields to query design grids, 82, 83 displaying top values, 349–350, 349, 350 AutoLookup queries, 356–357, 357, 358 filling in QBE grids, 345–346 buttons, 91 using asterisks in QBE grids, 346 changing queries, 86, 86 viewing unique values, 348–349, 348 creating running action queries, 341 from scratch, 81, 81, 335–339, 335, 336, 338 running queries, 85, 86 query design windows, 335, 335, sample project, 877–880, 877, 878, 338–339 879 with query wizards, 334–335 saving and reusing queries, 87, 341–342 creating for embedded charts, 581–582, 581 saving filters as, 322–323 4008index.qxd 5/31/01 2:49 PM Page 1172

1172 query by example • records

saving query designs, 87 automating navigation within using selection criteria, 358–360, 359 macros, 974 Simple Query Wizard, 81 carrying values forward, 1022–1023 snapshots and, 365 choosing for viewing queries, 83–84, 84 sort order, choosing, 84–85, 85 date-stamping changed, 1019 speeding up to increase database speed, 642–643 defined, 40, 41 summary operators, 364 deleting, 260–261 types of, 333–334, 337 deleting with macros, 1027–1034 union queries, 1062–1065, 1063, cascading deletes, 1031–1034, 1064, 1065 1031, 1033, 1034 viewing deciding whether or not to delete, 1027 the dynaset, 340 other methods for deleting records, the SQL statement behind queries, 1034 340 preventing or allowing deletions, query by example. See QBE (query by 1027–1031, 1028–1031 example) grids editing and saving changes, 672–674 Query By Form, 1052–1058 finding, 72–73 automating selection, 1054–1058, 1055, 1057, 1058 specific, 291–293, 291 selecting groups of records interac- with macros, 980–987, 980, 982, tively, 1052–1054, 1053, 1054 983, 984 grouping on data access pages, 550–558 adding caption sections to groups, R 555–556, 556 adding summary fields to group record-locking, 640, 676–678 footers, 557–558, 557, 558 records. See also filters and filtering; removing groups, 558 macros for working with groups of sections, 528, 550–551, 551 records using fields, 552, 552 adding new with macros, 1015–1017, using tables, 552–555, 553, 554, 1016, 1035–1039, 1038 555 adding to tables, 255 4008index.qxd 5/31/01 2:49 PM Page 1173

records, sorting • report wizards 1173

logical navigation among with sorting in ascending or descending macros, 980–993 order, 288 finding specific records, 980–987, recordsets defined, 332 980, 982, 983, 984 referential integrity, 180–181, 183 returning to previous record, relationships in NorthwindCS sample 987–989, 989 project, 881 multiple records, replacing data in, Relationships window, 182–186, 183, 299–301, 299, 301 184 navigation through, 252 repairing databases, 650–651 numbering, 160 replicas physical navigation among records converting to design master, 663 with macros, 974–979 creating, 658–660 automating default navigation but- tons and menu commands, partial replicas, 660–661 976–979, 977 updating, 662 automating keystroke navigation, replicating databases, 658–663 975–976 converting replicas to design master, saving 663 automatic save, 70, 255 creating partial replicas, 660–661, 661 with macros, 1021–1022 creating replicas, 658–660 searching for, 72–73 updating replicas, 662 selecting, 258–259, 258, 259 Report Template, 615 records, sorting Report Wizard, 332, 419–425, 420, 421 groups of records automatically, creating groups with, 468 1044–1052 custom formatting refinements, 414, complex sorts, 1048–1052, 1051 415 OrderBy property, 1045 grouping levels and grouping sorting by any column, 1048, 1048 options, 422, 422 Triple-State toggle button, report layout, 424, 424 1045–1048, 1045, 1046 sort order, 423, 423 groups of records interactively, 1044 specifying fields, 420, 420 returning to original order, 290 viewing data, 421, 422 sorting and filtering, 71–72 report wizards, 410–431 customizing styles, 410 4008index.qxd 5/31/01 2:49 PM Page 1174

1174 reports • reports, creating customized

how wizards build reports, 427 data values, 898 types of reports created by, 410–417 defined, 14–15 charts, 416, 416 examining, 58–59, 58 columnar (vertical) reports, 410, Forms/Reports options, 614–615, 411 614 custom formatting refinements, Main Switchboard’s preview Reports 413, 414–415, 414, 415 option, 58–59, 58 groups, totals, and summary opening, 431–432 reports, 412, 413, 415, 415 preview reports macro, creating, mailing labels, 416, 417 777–779, 778, 779 tabular reports, 411, 412 print reports macro, 779–781, 780, using to create mailing labels, 417, 781 428–431 printing, 425, 426 formatting postal codes and phone removing filters and sort order, 432 numbers, 430–431 saving, 431 preparing for dot-matrix or tractor- sections, 462, 464–466, 465, 466 fed labels, 428–430, 429 sending to Microsoft Excel and Word, using to create reports, 417–431 426 basic steps, 417–425, 418, 419, 420, speeding up to increase database 421 speed, 643–644 grouping levels and grouping styles options, 422, 422 changing, 432–433, 433 report layout, 424–427, 424, 425, 426 choosing, 52–53, 52 sort order for detail records and subreports, adding, 506–509, 506, summary options, 423, 423 507, 509 viewing data, 421, 422 summary reports, 473 reports synchronizing reports to forms, 1002–1004, 1002, 1003 attaching custom menus to, 814–815 reports, creating customized creating and printing, 75–78 adding custom controls, 473–510 closing and saving, 76 calculated controls, creating, copying to create new, 432 503–506, 504 preparing mailing labels, 74–75, 75 changing default properties for previewing and printing, 76–77 toolbox tools, 477–479 4008index.qxd 5/31/01 2:49 PM Page 1175

reports, creating customized • reports, creating customized 1175

combo boxes and list boxes, grid, 446–447 483–486, 483 property sheets, 443–445, 443 command buttons, adding, ruler, 445 492–493 toolbox, 442, 443 current date and time, 486–487, 486 Design view, 436–437 drawing frames around controls, designer skills, 448–461 487–488 AutoFormat styles, customizing, front-to-back controls order, 460–461, 460 changing, 502–503, 503 bound controls (fields), adding, hyperlinks, adding, 490–492, 491 448–449 labels, 479 controls, sections, forms and reports, selecting, 450–451, 450 lines, 487 dealing with controls, 451–455 option groups, 480–482, 480 fonts, colors, borders, appearance page breaks, adding, 488–490, 489 and more, changing, 455–456, pictures, sounds, other object, 455 adding, 495–502, 496, 498, 502 Help, menus and prompts, adding, presto change type, 487 458–460, 459, 460 subreports, adding, 506–509, 506, properties, copying, 457–458 507, 509 tab order, controlling, 456–457, tab controls, adding, 493–495, 494, 457 495 forms and reports design help, text boxes, 479–480 516–518 toggle buttons, option buttons and preprinted forms on screens, check boxes, 482–483, 483 510–516 using the toolbox, 474–477, 474, controls, 514, 514 476, 477 creating simple forms, 512 creating forms and reports without creating the table, 511–512512 wizards, 437–439, 438 form letters and mailing labels, 515 design tools, 439–448, 439, 440 printing reports from the form, changing reports and forms sizes, 514–515 447, 448 putting forms on screens, 512–513, choosing styles, 440–442, 441 513 Design view toolbars, 442, 443 scanning forms, 511, 511 field list, 442, 443 4008index.qxd 5/31/01 2:49 PM Page 1176

1176 Reports Switchboard, changing option names • security

sections, headers and footers, sample projects. See NorthwindCS sam- 462–473 ple Access project data, grouping in reports, 467–472, screen displays, 51 468, 472 Screen Tips, 21, 21 form sections, 462–464, 463, 464 toolbar buttons and, 133, 791 headers and foots, adding and viewing, 23 removing, 467 search and replace. See find and replace hiding sections, 475 searching for records, 72–73 report sections, 464–466, 465, 466 sections sizing sections, 472–473 adding caption sections to groups, specifying record source, 461–462 555–556, 556 Reports Switchboard, changing option defined, 531 names, 96–97, 96, 97 of grouped data access pages, requery 550–551, 551 requering forms with macros, security, 666–694 1037–1039, 1038 basic concepts, 679 Requery actions, 907 data sharing among users, 666–670 Resource Scheduling sample database, 140 separating tables, 668–670, 668, 669, 670 restoring databases from backups, 648 user access only to shared data, rows, selecting and arranging, 248–250 667–668, 667 rulers for customizing reports and user access to entire database, 666, forms, 445 666 run-time macro errors, 948, 949–950, encrypting and decrypting databases, 950 653 multiuser settings adjustment, 675–678, 675 S edited records, 677–678 minimizing locking conflicts, 678

sample databases. See also Fulfill 2002 record-locking, 676–677 included with Access, 137–140, network data editing, 671–674, 672, 860–861 673, 674 on CD-ROM that goes with this book, objects defined, 679 1098–1099 password security, 693–694, 694 4008index.qxd 5/31/01 2:49 PM Page 1177

Security Wizard • spelling 1177

preventing exclusive access, 670–671 shortcut menus, 26–27, 26 security systems for databases, available to Access, 103, 103 679–693 contextual shortcut menus, basic concepts, 679 816–817 built-in user and groups, 682 creating, 815–816, 815 logon dialog box, 692–693 global shortcut menus, 816, 816 logons, 680–681, 681 similarity with Windows shortcuts, ownership, 684, 688–689, 688 104–105, 105 permissions, 680, 687–688, 687 specifying startup options with, 634 Security Wizard, 689–692, 690, 691 Simple Query Wizard, 81, 334, 363 users and groups, 684–687, 685, Single Step, 951–952, 952 686, 687 snapshots and queries, 365 workgroup files, 681–683, 681, 682 sorting, sort order for queries, 84–85, 85. upgradeable custom applications, 671 See also data, sorting; records, sorting Security Wizard, 689–692, 690, 692 sounds, adding to forms and reports, 495–497, 496. See also OLE, using to Select query, 333 store pictures, sounds, other objects self joins, 352–353, 352, 353 source code, 861–862, 862, 863 Send To and exporting, 227, 234–236, source program, 270 235 special effects, 104, 104 SendKeys, 903–904 speed of databases, increasing, 636–644 sequential flow, 910 forms, reports, printing, 643–644 servers, 269 general performance, 636–640 Service Call Management sample data- base, 140 adjusting general access settings, 639–640 SetValue, 895–896, 899 adjusting hardware and Windows SetValue action, 729–732, 730, 731 settings, 637–639 Shift-clicking, 450, 725 Performance Analyzer, 640–643, 641 shortcuts queries, 642–643 creating desktop shortcuts, 8, 20 tables, 641–642 Microsoft Office Shortcut Bar, spelling 105–107, 105, 106, 107 changing options, 620–621, 621 shortcut keys, running macros from, 913–914, 914 spell check, 296–299, 296, 298 4008index.qxd 5/31/01 2:49 PM Page 1178

1178 spillover pages, preventing • switchboards

spillover pages, preventing, 447, 448 storage spreadsheets, importing or linking, data, 38–39, 38 208–213, 209, 211, 212, 213 tables and, 39–40, 40 SQL strings Microsoft Server SQL databases, con- string delimiters defined, 1024 necting projects to, 885 strings within strings, 1024–1025 SQL Server Structured Query Language. See SQL Microsoft SQL Server Desktop Engine, 874 subdatasheet views projects and named instances of choosing tables for, 243–244, 244 SQL Server 2000 server, 872 closing for one record, 243, 244 server tables in Access, 48 collapsing open, 245 working without client/server customizing, 251 application, 872 expanding for datasheets, 244, 245 SQL Statements and queries, 340 inserting and removing, 245 Start>Programs menu items, 7–8, 7 opening for one record, 242–243, 243 startup viewing related records, 239, 242 macros to run at startup, creating, subforms 739–740 adding to forms, 506–509, 506, 507, personalizing options, 625–628 509 running macros at, 914 defined, 14, 389 startup command-line options, 7, moving to specific controls on active 631–633 and non-active subforms, 971–974, startup commands, 97–98, 98 973 startup macros, creating, 1004–1006, subforms vs. normal forms, 405 1004, 1005 tips for using, 406 switchboards appearing at startup, subreports, adding to reports, 506–509, 764, 764 506, 507, 509 statements and Visual Basic, 826–827 Switch() function, 939–940, 940 status bars Switchboard Manager, 745, 745 getting help from, 31, 31 switchboards viewing, 23 appearing at startup, 764, 764 4008index.qxd 5/31/01 2:49 PM Page 1179

Sybex technical support • tables 1179

creating without wizards, 750–762, 765 T adding controls, 752–754, 753, 754 AddressBook, 757–762, 758–762 Table Analyzer Wizard, 191, 641 blank forms, creating, 750–752, table design view 751 creating forms from, 394 macros for new controls, creating, creating reports from, 418 754–757, 755, 756, 757 Table Wizard, 42, 144–148, 144, 145 customizing wizard-created, tables 744–750, 744, 765 adding data, 254–256, 254 art, 747–750, 748, 749 adding to data access pages, 537–539, defining and changing items, 538, 539 745–747, 746, 747 changing data, 256–258, 257 options, 744–745, 745 changing design from Datasheet view, defined, 744 283–286 embellishing, 762–763, 763 datasheet views, 13 Main Switchboard columns, 284–285, 284 AddressBook and, 757–762, creating tables from blank 758–762 datasheets, 286 buttons on, 59 defined, 13, 41 NwindMacros2002 sample data- defining relationships, 180–186 base, 920, 920 among existing tables, 181–182, options, 57–59 181, 182 opening with macros, 754–755, 755 AutoNumbers and, 189–190, 190 reports switchboard, changing option redefining or deleting relation- names on, 96–97, 96, 97 ships, 186 switchboard form, customizing, referential integrity, 180–181 94–95, 94, 95 relating two tables in Relationships Switchboard Items table, 59 window, 182–186, 183, 184 tips for using, 57 saving relationships layout, 186 wizard-created vs. custom, 764–765 tips for using Relationships win- Sybex technical support, xxxvi–xxxvii dow, 185–186 syntax macro errors, 948–949 displaying lookup field values in, 174 system.mdw files and starting Access, imported tables design refinement, 647 223 4008index.qxd 5/31/01 2:49 PM Page 1180

1180 tables • tabular reports

linked tables, 204–208 Table Analyzer Wizard, 191 deleting the link, 207–208 Table Wizard, 42 Linked Table Manager, 206–207, tables/queries options, 621–623, 622 206 troubleshooting, 225–226 renaming, 205 vs. databases, 128 setting properties, 204–205 tables, creating, 143–191 speeding up, 205–206 from blank datasheets, 286 modifying structure, 161–164, 162, with Table Wizard, 42, 144–148, 144, 163 145 multiple tables, 42–45 without Table Wizard, 148–159 navigating in, 252–253, 252 choosing data types, 151–152, 151 opening, 159–161, 160, 161 defining field properties, 152–155 optional fields, 50, 51 defining fields, 149–151, 150 Order Entry sample database and, defining indexes, 156–157, 157 164–172, 165 design saving, 158–159, 158 Customers table, 165–167, 165 planning, 148–149 Employees table, 170, 170 setting primary keys, 156, 156 Order Details table, 169–170, 169 tables, joining, 350–356 Orders table, 168–169, 168, 169 changing join type, 354–355, 354 Payments table, 170–171, 171 deleting joins, 355 Products table, 167, 167 join lines, 338, 350 small Order Entry tables, 171–172, 171 join types projects and inner joins, 351, 353–354, 354 creating projects for new tables, outer joins, 351–352, 351, 352 884–885, 884 self joins, 352–353, 352, 353 creating projects to work with reasons for, 350 existing tables, 883–884, 883 tabs sample project, 876, 876 tab controls and forms, 493–495, 494, separating for security, 668–670, 668, 495 669, 670 tab order in forms, 456–457 speeding up to increase database tabular forms, 387–388, 387 speed, 641–642 tabular reports, 411, 412 4008index.qxd 5/31/01 2:49 PM Page 1181

taskbar, hiding temporarily • toolbox 1181

taskbar, hiding temporarily, 12–13 adding to custom applications, templates, creating databases using, 6 799–803, 800, 801, 802 tested loops, 944–945 built-in to Access, 790–791 text boxes, adding to reports and forms, button types, 22, 22 479–480 customizing, 791–805 text controls, 64 controlling size and appearance, text files 791 delimited defined, 213 creating, 792–795, 793, 794 exporting to, 228–229 creating toolbar buttons, 796–799, 796, 797 fixed-width defined, 213 modified vs. custom, 792 importing bad data, 224 modifying built-in toolbars, importing or linking 803–805, 804 basics, 208–210, 209, 210 saving and modifying custom tool- import and link specifications, bars, 795–796 217–220, 217, 218 Design view toolbars, 439, 440, types of text files, 213 442–443 using wizards, 213–217, 214, 215, docking, 25, 25, 791 216 drop down lists, 22, 22 Text Import Wizard, 214–217, 214, 215, formatting (Form/Report), 455–456, 216 455 themes macro toolbar, 893–894, 893, 894 applying to data access pages, Microsoft Office and toolbars in com- 559–561, 559, 560 mon with Access, 107, 108 defined, 559 page design toolbar, 532, 532 time, adding current to reports and positioning, 25, 25 forms, 486–487, 486 record navigation toolbar, 551 Time and Billing sample database, 140 Screen Tips, 21, 21 titles users, limiting or empowering, 792 adding to pages, 535, 535 viewing and customizing, 23, 23 choosing for databases, 53–54, 53 toolbox, 439, 440, 442–443 toggle buttons, 482–483, 483 adding chart tool to, 579–580, 580 toolbars, 21–23, 25 changing default properties for tools, 477–479 4008index.qxd 5/31/01 2:49 PM Page 1182

1182 tools • users

creating controls and, 474–477, 474, 476, 477 U design toolbox, 532–533, 532, 533 tools. See also design tools unbound controls, 448 automation tools. See macros; Visual UNC (Uniform Naming Convention) Basic for applications and Access, 103 Microsoft Office, tools in common undo, 63 with Access, 109–110 Undo toolbar, 256 trapping events, 917 Uniform Naming Convention (UNC) triggering macros, 917 and Access, 103 Triple-State toggle button, 1045–1048, Union queries, 334, 1062–1065, 1063, 1045, 1046 1064, 1065 troubleshooting United States Postal Service action queries, 382–383, 383 barcodes, 1100–1104 applications. See error messages formatting postal codes for mailing labels, 430–431 converting Access databases, 1096 Update query data entry and editing, 280–283, 281, 283 cascaded updates, 376 filters, 323–324, 324 creating, 375–376, 376 forms and reports design, 516–518 defined, 333, 374 import problems, 223–226, 224 global replace and, 300 macros, 737–739. See also errors and user access macros preventing exclusive access, 670–671 turnkey applications to entire database, 666, 666 defined, 128 to shared data only, 667–668, 667 ways of creating, 99 User-Level Security Wizard, 681, typos 689–692, 690, 691 AutoCorrect, 293–295, 294 users fixing automatically, 293–299 built-in user and groups, 682 spell checking, 296–299, 296, 298 defined, 679 limiting or empowering via toolbars, 792 working with users, 684–686, 685, 687, 687 4008index.qxd 5/31/01 2:49 PM Page 1183

validation rule • Windows Briefcase and similarity to Access 1183

objects and, 824 V procedures and, 828–829 sources of knowledge about, 833 validation rule statements and, 826–827 Data Fails Validation Rule message, 282, 282 troubleshooting macros with, 954–956, 955, 956, 957 defined, 154, 155 variables and, 827–828 properties, 1009–1010, 1010, 1011 vs. macros, 957–963 values and Immediate pane, 955–956, 956, 957 error codes, 958–959 variables and Visual Basic, 827–828 error handler, 960–963, 961 VB. See Visual Basic (VB) macro programming vs. Visual Basic programming, 959–960 VBA (Visual Basic for Applications) and macros, 917 macros vs. Visual Basic code, 740–741 vertical (columnar) reports, 410, 411 when to use, 822–823 Visual Basic for Applications and macros, 917 where to find, 823–824, 823 Visual Basic (VB) adding VB code to forms, 92–94, 93 building procedures, 830–832, 831 W capabilities of, 124 defined, 822 Web Help, 111 defining custom actions and, 712 wildcards error messages and, 838–847 for finding parts of fields, 319–320, building error messages, 845–847 319, 320 flow control on error, 843–845 for finding records, 291–292 flow control statements, 838–843 windows testing error messages, 847–848, custom form windows, 17 848 Database windows. See under data- events and, 824–825, 825, 826 bases functions and, 829–830 tweaking setting to increase database speed, 637–639, 638 macros Windows. See Microsoft Windows converting to, 832 Windows Briefcase and similarity to running from VB window, Access, 102 915–916, 916 4008index.qxd 5/31/01 2:49 PM Page 1184

1184 Windows Explorer and similarity to Access • workgroups

Windows Explorer and similarity to Lookup Wizard, 175–176 Access, 102, 103 Mailing Label Wizard. See Label Wiz- wizards, 48, 50, 51. See also form wizards ard Chart Wizard, 416, 420, 576–578, Page Wizard, 78–79, 78, 79 576–578 Partial Replica Wizard, 660–661, 661 Command Button Wizard, 90 Performance Analyzer Wizard, 191 Control Wizard, 89 PivotTable Wizard, 598–600, 598, Database Splitter Wizard, 128, 599, 600 668–669, 668 query wizards Database Wizard Crosstab Query Wizard, 334 choosing database titles and Find Duplicates Query Wizard, 334 adding pictures, 53–54, 53 Find Unmatched Query Wizard, creating databases, 49–51, 50 334 entering data, 66–68, 68 Simple Query Wizard, 81, 334, 363 finishing, 54–55, 55 Report Wizard, 468 forms styles and, 51, 52 Security Wizard, 689–692, 690, 692 organizing databases, 42 standard buttons in wizard dialog revisiting dialog boxes, 55 boxes, 135 styling of reports, 52–53, 52 Table Analyzer Wizard, 191, 641 Field Builder Wizard, 151 Table Wizard, 42, 144–148, 144, 145 Form Wizard, 332, 397–398, 397, Text Import Wizard, 214–217, 214, 398 215, 216 Import Spreadsheet Wizard, 210, 211, User-Level Security Wizard, 681, 212, 213 689–692, 690, 691 importing and linking and, 204 workgroups Input Mask Wizard, 154 creating with User-Level Security Wiz- installing, 628–629, 629 ard, 681, 689–692, 690, 691 Label Wizard creating without wizard, 681–683, 681, 682 preparing labels using report wiz- ards, 428–430, 429 defined, 647 preparing mailing labels for joining, 683 reports, 74–75, 75 workgroup files, 681–683, 681, 682 Link Text Wizard, 217 4008index.qxd 5/31/01 2:49 PM Page 1185

XML • zooming in print preview 1185

X

XML exporting to, 232–233, 233 importing documents, 222–223

Y

year formatting, 617

Z

Zoom feature, 277 zooming in print preview, 325–326, 325