revolutionary guide to access professional developers edition

Download Revolutionary Guide to Access Professional Developers Edition

If you can't read please download the document

Upload: vuonglien

Post on 08-Dec-2016

221 views

Category:

Documents


2 download

TRANSCRIPT

CONTENTS.TXTCONTENTS

The CD includes 3 directories: a CD_BOOK directory which contains the text of the book, an EXAMPLES directory which contains examples used throughout the book, split into 2 sub-directories FILES and MDBS, and a TOOLS directory which contains all the tools.Here is a description of all the files included in the EXAMPLES and TOOLS directories:

EXAMPLES\FILES DIRECTORY:

CONSTANT.TXTText file containing a list of constants used throughout the book. This is included in the constants module of the example databases.

DDEDOC.DOCWord 6 document used in Chapter 5.

DDEGETAC.TXTText file containing the Word macro used for the Word to Access DDE example in Chapter 5.

DDESMPL.XLSExcel spreadsheet used in DDE examples in Chapter 5.

DOSPELLC.TXTText file containing the Word macro used for the Spell Checking example in Chapter 4.

INIMGR.MDAThe INI manager Add-in used in Chapter 9.

INVNTRY.DBFThe FoxPro database created in Chapter 11.

INVNTRY.XLSExcel spreadsheet used for examples in Chapter 11.

WROX.DOTWord template used for OLE example in Chapter 3.

WROXCONS.TXTText file containing extra constants used to define standard Access buttons - used in later chapters.

XLDEMO.XLSExcel spreadsheet used for OLE examples in Chapter 4.

EXAMPLES/MDBS DIRECTORY

CONTACT2.MDBThe Wrox PIM after the initial set up in Chapter 2. CONTACT6.MDBThe Wrox PIM after additions up to and including Chapter 6.

CONTACT9.MDBThe Wrox PIM after additions up to and including Chapter 9

CONTACTS.MDBThe final version of the Wrox PIM.

OLETOOLS.MDBSample database used for OLE examples in Chapter 4.

PIMCODE.MDBThe code part of the PIM created in Chapter 15.

PIMDATA.MDBThe data part of the PIM created in Chapter 15.

SAMPLES.MDBThe sample database used throughout the book.

SQLTEST.MDBSample database used for SQL Server examples in Chapter 11.

TOOLS DIRECTORYWe'd like to thank the contributors again for permission to include their work on the CD. For full details of the tools included and any licencing instructions please see the README files included in the relevant directories.

APPFRAMEAndrew CouchA sample application showing multi-page form design, information drill techniques and sophisticated data entry.

DELIGHTSAndrew CouchBox of Delights toolbox containing among other things a Data Access Object Browser and a Rounding Currency utility.

EXPORTERNicholas CouchAn object exporting manager add-in allowing you to export objects in your database.

MORPHKen Getz/Paul LitwinA control morphing add-in allowing you to change one control type to another on a form.

NAMINGStan Leszynski/Greg ReddickA help file containing the Leszynski/Reddick naming guidelines for Access.

OPTIONSKen StambaughA utility that sets and retrieves options.

QUERYWIZKen StambaughAn adhoc query wizard - this also requires the Multi-select List Box OCX available from the MSAccess forum on Compuserve.

SECURITYMonte Slichter/Michael MeeA security wizard add-in allowing you to secure objects in a database.

SPINOCXAndrew Miller/MicrosoftA spinning label OCX that allows you to add spinning label controls to your forms.

SQLWIZVernon JimmersonAn SQL query wizard allowing you to construct SQL queries like you would using other query wizards.

TABOCXAndrew Miller/MicrosoftA tab OCX that allows you to produce tabbed user interfaces.

TEAMDan Madoni/Paul NielsenA multi-developer tool with version control and check-in/check-out features.

TOOLTIPSDave Schlosser/Chris PattersonA tooltip and cuecards library which allows you to add tool tips to your controls.

Please be aware that some of these tools are shareware and you should follow the registration instructions that accompany the relevant files if you plan to use the tools.

For installation instructions for the example databases and CD book please read the README.TXT file.

README.1STThe PIMCODE.MDB and the PIMDATA.MDB databases have been developed to work on thesystem at Wrox Press. The database will not work if you run it directly from theCD-ROM. You must install the two MDB files onto your hard disk and redefine theattachments.

To do this, by selecting the default installation setup of C:\WROX,

1. Open PIMCODE.MDB2. Hit Quit and unhide the database window from File3. Select Attachment Manager from File, Add-ins4. Select all four tables and hit OK5. Select PIMDATA.MDB using the file selector dialog box

The table attachments will be refreshed and the PIMCODE.MDB will now work.Run the Find Form form and the database will operate properly.

README.TXTThis file contains setup instructions for the example databases, tools and hypertext book included on this CD.

EXAMPLE DATABASES

To set up the example databases run the SETUP.EXE from the SAMPSET directory on the CD. You can do this by double clicking on the file name in File Manager.

This creates a WROX directory on your C drive and creates a program group called "Rev Guide to Access" in your Program Manager which contains all the example databases used throughout the book.

You can then simply double-click on the necessary icon to run that database.

You will have to copy all other necessary files (Text files, spreadsheets etc.) from the EXAMPLES/FILES directory on the CD into this WROX directory. A full list of the files required is in the CONTENTS.TXT file on this CD.

TOOLS

All the tools included with the CD are in the TOOLS directory. You can run these directly from the CD or copy them onto your hard drive.

CD BOOK

To setup the hypertext book on your hard drive, run the SETUP.EXE file from the BOOK directory on the CD. This installs the necessary viewer files and creates a program group called "Revolutionary Guides" in your Program Manager.

To run the book, simply double-click on the "Revolutionary Access" icon.

TOOLS/TEAM/README.TXTTeamAccess 2.0, Shareware ReleasePaul Nielsen ComputingCopyright (c) 1995, Paul Nielsen Computing

Contents~~~~~~~~TEAM2.ZIP File ContentsShareware License AgreementDisclaimerPrinting the User's Guide

TEAM2.ZIP Contents~~~~~~~~~~~~~~~~~~The TEAM2.ZIP file should contain the following files:

File Name | Description -------------|------------------------------------------------------------ README.TXT | This readme text file TEAM2.DOC | User's Guide in Microsoft Word for Windows 6.0 format TEAM2.MDB | TeamAccess REVISION.MDB | TeamAccess revisions backup database OUTL1016.OCX | Microsoft Access Data Outlline Control

Shareware License Agreement~~~~~~~~~~~~~~~~~~~~~~~~~~~This software is provided as shareware and is not free. You may use this product with no payment obligation for a period of 30 days from the date of download to evaluate its usefulness in your organization. If you wish to continue using this product beyond the evaluation period, you must purchase a license for every three TeamAccess users in your organization. If the number of TeamAccess users in your organization is not divisible by three, you must round up to the nearest three to determine the number of licenses you are obligated to purchase.

Because it significantly reduces our overhead to provide software via shareware, we can offer this product at a significantly reduced price when compared to our packaged release of the same product. When we receive your payment, we will register you as a legal owner of the number of licenses you purchase and will inform you of any updates to the product with an offer to purchase each update at a significantly reduced price.

To register, send a check or money order in the amount of $79, (United States currency please), for each three-user license, along with your name and address, to the following address:

Paul Nielsen Computing521 21st AveHickory, NC 28602

Disclaimer~~~~~~~~~~This software is licensed for use without representation or warranties with respect to the contents hereof. Any implied warranty of fitness for any particular purpose is hereby disclaimed. The author reserves the right to make changes and additions to this publication without the notification of any persons of such revisions.

In no event shall the author be liable to you for any damages, including any lost profits, lost savings or other incidental or consequential damages arising out of the use of or inability to use this software, even if the author has been advised of the possibility of such damages.

It is illegal for the recipient of this software to possess or use the data outline control file (OUTL1016.OCX) unless said recipient owns a full Microsoft Access product license and has installed Microsoft Access. The author is not responsible for any breach of a Microsoft license agreement with regard to the recipient's use of the data outline control.

Printing the User's Guide~~~~~~~~~~~~~~~~~~~~~~~~~The TeamAccess User's Guide contains information on how to install, set up,and use TeamAccess. The User's Guide is in Microsoft Word for Windows 6.0format, so you must have Microsoft Word for Windows 6.0 to print it. If youdo not have Word for Windows 6.0, Paul Nielsen Computing can send you aprinted copy for a nominal fee, (send CompuServe mail to 73201,533 formore information).

To print the TeamAccess User's Guide, open TEAM2.DOC in Word for Windows andprint the document according to the instructions provided with Word for Windows.

TOOLS/TABOCX/README.TXT================================================================== TAB.OCX - Tab OLE Control for Microsoft Access 2.0==================================================================

INFORMATION PROVIDED IN THIS DOCUMENT AND ANY SOFTWARE THAT MAY ACCOMPANY THIS DOCUMENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.

The user assumes the entire risk as to the accuracy and theuse of this OLE Custom Control (TAB.OCX). This control may be copied and distributed subject to the following conditions:

1) All files in TAB.ZIP that accompany TAB.OCX are also distributed along with the OLE Custom Control.

2) The OLE Custom Control itself can not be redistributed for profit.

This OLE Custom Control may be distributed as part of a MicrosoftAccess application, subject to the following conditions:

1) The licensing file (TAB.LIC) can not be distributed as part of the Microsoft Access application.

2) No other files in MSLB.ZIP, with the exception of OC1016.DLL can be distributed with the control.

Copyright (C) 1994 Microsoft Corporation. All Rights Reserved.Microsoft, Microsoft Access, and MS-DOS are registered trademarks and Windows is a trademark of Microsoft Corporation.CompuServe is a registered trademark of CompuServe, Inc.

TOOLS/SPINOCX/README.TXT=================================================================== SPINLBL.OCX - Spinning Label OLE Control for Microsoft Access 2.0===================================================================

INFORMATION PROVIDED IN THIS DOCUMENT AND ANY SOFTWARE THAT MAY ACCOMPANY THIS DOCUMENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.

The user assumes the entire risk as to the accuracy and theuse of this OLE Custom Control (SPINLBL.OCX). This control may be copied and distributed subject to the following conditions:

1) All files in SPINLBL.ZIP that accompany SPINLBL.OCX are also distributed along with the OLE Custom Control.

2) The OLE Custom Control itself can not be redistributed for profit.

This OLE Custom Control may be distributed as part of a MicrosoftAccess application, subject to the following conditions:

1) The licensing file (SPINLBL.LIC) can not be distributed as part of the Microsoft Access application.

2) No other files in SPINLBL.ZIP, with the exception of OC1016.DLL can be distributed with the control.

Copyright (C) 1994 Microsoft Corporation. All Rights Reserved.Microsoft, Microsoft Access, and MS-DOS are registered trademarks and Windows is a trademark of Microsoft Corporation.

SAMPSET/ACMSETUP.EXE

SAMPSET/ACMSETUP.GID

SAMPSET/ACMSETUP.HLP

SAMPSET/ADMIN.INF[Source Media Descriptions] "1", "Disk 1", "SETUP.EXE", "."

[Default File Settings]"STF_BACKUP" = """STF_COPY" = "YES""STF_DATE" = "1995-02-28""STF_DECOMPRESS" = "YES""STF_OVERWRITE" = "OLDER""STF_READONLY" = """STF_ROOT" = "YES""STF_SETTIME" = "YES""STF_TIME" = """STF_VITAL" = ""

[Files]"bootstrp"= 1,setup.exe,,,,,,1033,,,,,,,SHARED,39936,,,,2.50.0.127,"stf"= 1,setup.stf,,,,,,,,,,,,,SHARED,5120,,,,,"lst"= 1,setup.lst,,,,,,,,,,,,,SHARED,1024,,,,,

[User Files]"contact2_mdb"= 1,contact2.mdb,,,,,,,,,,,,,,131072,,,,,"icon2_ico"= 1,icon2.ico,,,,,,,,,,,,,,4608,,,,,"contact6_mdb"= 1,contact6.mdb,,,,,,,,,,,,,,327680,,,,,"icon6_ico"= 1,icon6.ico,,,,,,,,,,,,,,4608,,,,,"contact9_mdb"= 1,contact9.mdb,,,,,,,,,,,,,,327680,,,,,"icon9_ico"= 1,icon9.ico,,,,,,,,,,,,,,4608,,,,,"contacts_mdb"= 1,contacts.mdb,,,,,,,,,,,,,,294912,,,,,"iconpim_ico"= 1,iconpim.ico,,,,,,,,,,,,,,4608,,,,,"oletools_mdb"= 1,oletools.mdb,,,,,,,,,,,,,,98304,,,,,"iconole_ico"= 1,iconole.ico,,,,,,,,,,,,,,4608,,,,,"pimcode_mdb"= 1,pimcode.mdb,,,,,,,,,,,,,,196608,,,,,"iconcode_ico"= 1,iconcode.ico,,,,,,,,,,,,,,4608,,,,,"pimdata_mdb"= 1,pimdata.mdb,,,,,,,,,,,,,,196608,,,,,"icondata_ico"= 1,icondata.ico,,,,,,,,,,,,,,4608,,,,,"samples_mdb"= 1,samples.mdb,,,,,,,,,,,,,,1114112,,,,,"iconsamp_ico"= 1,iconsamp.ico,,,,,,,,,,,,,,4608,,,,,"sqltest_mdb"= 1,sqltest.mdb,,,,,,,,,,,,,,131072,,,,,"iconsql_ico"= 1,iconsql.ico,,,,,,,,,,,,,,4608,,,,,

SAMPSET/CONTACT2.MDB

SAMPSET/CONTACT6.MDB

SAMPSET/CONTACT9.MDB

SAMPSET/CONTACTS.MDB

SAMPSET/DECOMP.EXE

SAMPSET/ICON2.ICO

SAMPSET/ICON6.ICO

SAMPSET/ICON9.ICO

SAMPSET/ICONCODE.ICO

SAMPSET/ICONDATA.ICO

SAMPSET/ICONOLE.ICO

SAMPSET/ICONPIM.ICO

SAMPSET/ICONSAMP.ICO

SAMPSET/ICONSQL.ICO

SAMPSET/MSACAHBB.DLL

SAMPSET/MSCPYDIS.DLL

SAMPSET/MSSETUP.DLL

SAMPSET/OLETOOLS.MDB

SAMPSET/PIMCODE.MDB

SAMPSET/PIMDATA.MDB

SAMPSET/SAMPLES.MDB

SAMPSET/SETUP.EXE

SAMPSET/SETUP.INF[Source Media Descriptions] "1", "Disk 1", "SETUP.EXE", "."

[Default File Settings]"STF_BACKUP" = """STF_COPY" = "YES""STF_DATE" = "1995-02-28""STF_DECOMPRESS" = "YES""STF_OVERWRITE" = "OLDER""STF_READONLY" = """STF_ROOT" = "YES""STF_SETTIME" = "YES""STF_TIME" = """STF_VITAL" = ""

[Files]"bootstrp"= 1,setup.exe,,,,,,1033,,,,,,,SHARED,39936,,,,2.50.0.127,"stf"= 1,setup.stf,,,,,,,,,,,,,SHARED,5120,,,,,"lst"= 1,setup.lst,,,,,,,,,,,,,SHARED,1024,,,,,

[Admin Files]"decomp"= 1,decomp.exe,,,,,,,,,,,,,,39424,SYSTEM,,,,"help"= 1,acmsetup.hlp,,,,,,,,,,,,,,19456,SYSTEM,,,,"mssetup"= 1,mssetup.dll,,,,,,1033,,,,,,,,191488,SYSTEM,,,2.50.0.127,"mscpydis"= 1,mscpydis.dll,,,,,,1033,,,,,,,,14848,SYSTEM,,,2.50.0.127,"_mssetup"= 1,_mssetup.exe,,,,,,,,,,,,,,14336,SYSTEM,,,,"cahbb"= 1,msacahbb.dll,,,,,,,,,,,,,,201216,SYSTEM,,,2.0.0.13,"EXE"= 1,acmsetup.exe,,,,,,1033,ALWAYS,,,setup.exe,!ROOT,,,256000,SYSTEM,,,1.0.1.127,"setupini"= 1,setup.ini,,,,,,,,,,,,,,512,SYSTEM,,,,"admin"= 1,admin.inf,,,,,,,ALWAYS,,,setup.inf,!ROOT,,SHARED,7680,,,,,

[User Files]"contact2_mdb"= 1,contact2.mdb,,,,,,,,,,,,,,131072,,,,,"icon2_ico"= 1,icon2.ico,,,,,,,,,,,,,,4608,,,,,"contact6_mdb"= 1,contact6.mdb,,,,,,,,,,,,,,327680,,,,,"icon6_ico"= 1,icon6.ico,,,,,,,,,,,,,,4608,,,,,"contact9_mdb"= 1,contact9.mdb,,,,,,,,,,,,,,327680,,,,,"icon9_ico"= 1,icon9.ico,,,,,,,,,,,,,,4608,,,,,"contacts_mdb"= 1,contacts.mdb,,,,,,,,,,,,,,294912,,,,,"iconpim_ico"= 1,iconpim.ico,,,,,,,,,,,,,,4608,,,,,"oletools_mdb"= 1,oletools.mdb,,,,,,,,,,,,,,98304,,,,,"iconole_ico"= 1,iconole.ico,,,,,,,,,,,,,,4608,,,,,"pimcode_mdb"= 1,pimcode.mdb,,,,,,,,,,,,,,196608,,,,,"iconcode_ico"= 1,iconcode.ico,,,,,,,,,,,,,,4608,,,,,"pimdata_mdb"= 1,pimdata.mdb,,,,,,,,,,,,,,196608,,,,,"icondata_ico"= 1,icondata.ico,,,,,,,,,,,,,,4608,,,,,"samples_mdb"= 1,samples.mdb,,,,,,,,,,,,,,1114112,,,,,"iconsamp_ico"= 1,iconsamp.ico,,,,,,,,,,,,,,4608,,,,,"sqltest_mdb"= 1,sqltest.mdb,,,,,,,,,,,,,,131072,,,,,"iconsql_ico"= 1,iconsql.ico,,,,,,,,,,,,,,4608,,,,,

SAMPSET/SETUP.INI19491-020-0060942

SAMPSET/SETUP.LST[Params] WndTitle = Rev Guide to Access Setup WndMess = Starting Rev Guide to Access Setup... TmpDirSize = 900 TmpDirName = ~msstfgf.t CmdLine = acmsetup /T setup.stf /S %s %s DrvModName = acmsetup Require31 = This program requires Microsoft Windows version 3.1 or later.

[Files] setup.inf = setup.inf setup.stf = setup.stf acmsetup.hlp = acmsetup.hlp mssetup.dll = mssetup.dll mscpydis.dll = mscpydis.dll _mssetup.exe = _mssetup.exe msacahbb.dll = msacahbb.dll acmsetup.exe = acmsetup.exe

SAMPSET/SETUP.STFApp NameMSADT200.APPApp Version1.00Frame Bitmap"msacahbb.dll, 123, 124"Frame CaptionRev Guide to Access SetupDialog Caption BaseRev Guide to AccessWelcome StringThis program installs the Rev Guide to Access application on your machine by copying files and modifying system configuration files as necessary.Usage StringUsage: Setup or Setup /A\nSetup /A runs the setup in Administrator mode.About Box StringSetupCheck Modulesmsaccess, Microsoft Access, msarn110,Access Runtime 1.x, msarn200,Access 2.0 runtime , vb,MS Visual Basic, vbrun100,VB Runtime 1.0, vbrun200,VB Runtime 2.0, vbrun300,VB Runtime 3.0, graph, MS GraphSource DirectoryMSAPPS LocationMSAPPS ModelocalInf File Namesetup.infSuppress Copy Disincentive DialogsSuppress Serial Number DialogMaximum Object ID 51Admin Mode Root Object ID4 : 1Floppy Mode Root Object ID3 : 1Network Mode Root Object ID5 : 1Maintenance Mode Root Object IDBatch Mode Root Object IDSetup Version1.0.1.127

ObjIDInstall During Batch ModeTitleDescrTypeDataBMP IdVitalSharedDir ChangDest DirCheck DirInstalled By Us1Rev Guide to AccessAppSearch"""c:\wrox"", ""________.___"", """", 0, ""no"", ""yes"", "2==== Installation Types ====3Floppy InstallationAppMainDlg7yes4Administrative InstallationGroup10 22 17 185Network InstallationAppMainDlg7 8yes6==== Installation Forms ====7&CompleteInstall all files for this applicationGroup17 18 20"msacahbb.dll, 115"8&WorkstationInstall the application shared off the networkGroup17 18 12"msacahbb.dll, 116"9==== Admin Installs ====10AdminSetupFilesCopySection"""Admin Files"""11==== Workstation Installs ====12WorkstationGroup13 14 1513Workstation_FileGroup22%s14Workstation_UserGroup4115Turn shared mode onUseSharedMode16==== Destination Directory Settings ====17CustomAction"""msacahbb.dll"", ""ADTDestDirWin"""18CustomAction"""msacahbb.dll"", ""ADTDestDirSys"""19==== Option Installs ====20USERGroup22 4121==== Installing USER's Options ====22---- User File Copying ----Group23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 4023USER_File_contact2_mdbCopyFile"""User Files"", ""contact2_mdb"""%d24USER_File_icon2_icoCopyFile"""User Files"", ""icon2_ico"""%d25USER_File_contact6_mdbCopyFile"""User Files"", ""contact6_mdb"""%d26USER_File_icon6_icoCopyFile"""User Files"", ""icon6_ico"""%d27USER_File_contact9_mdbCopyFile"""User Files"", ""contact9_mdb"""%d28USER_File_icon9_icoCopyFile"""User Files"", ""icon9_ico"""%d29USER_File_contacts_mdbCopyFile"""User Files"", ""contacts_mdb"""%d30USER_File_iconpim_icoCopyFile"""User Files"", ""iconpim_ico"""%d31USER_File_oletools_mdbCopyFile"""User Files"", ""oletools_mdb"""%d32USER_File_iconole_icoCopyFile"""User Files"", ""iconole_ico"""%d33USER_File_pimcode_mdbCopyFile"""User Files"", ""pimcode_mdb"""%d34USER_File_iconcode_icoCopyFile"""User Files"", ""iconcode_ico"""%d35USER_File_pimdata_mdbCopyFile"""User Files"", ""pimdata_mdb"""%d36USER_File_icondata_icoCopyFile"""User Files"", ""icondata_ico"""%d37USER_File_samples_mdbCopyFile"""User Files"", ""samples_mdb"""%d38USER_File_iconsamp_icoCopyFile"""User Files"", ""iconsamp_ico"""%d39USER_File_sqltest_mdbCopyFile"""User Files"", ""sqltest_mdb"""%d40USER_File_iconsql_icoCopyFile"""User Files"", ""iconsql_ico"""%d41---- User Non File Work ----Group4242---- User ProgMan Items ----Group43 44 45 46 47 48 49 50 5143USER_UserPM_1AddProgmanItem"""Rev Guide to Access"", ""Contact2"", ""%23\contact2.mdb"", ""%24\icon2.ico"""44USER_UserPM_2AddProgmanItem"""Rev Guide to Access"", ""Contact6"", ""%25\contact6.mdb"", ""%26\icon6.ico"""45USER_UserPM_3AddProgmanItem"""Rev Guide to Access"", ""Contact9"", ""%27\contact9.mdb"", ""%28\icon9.ico"""46USER_UserPM_4AddProgmanItem"""Rev Guide to Access"", ""PIM"", ""%29\contacts.mdb"", ""%30\iconpim.ico"""47USER_UserPM_5AddProgmanItem"""Rev Guide to Access"", ""Oletools"", ""%31\oletools.mdb"", ""%32\iconole.ico"""48USER_UserPM_6AddProgmanItem"""Rev Guide to Access"", ""Pimcode"", ""%33\pimcode.mdb"", ""%34\iconcode.ico"""49USER_UserPM_7AddProgmanItem"""Rev Guide to Access"", ""Pimdata"", ""%35\pimdata.mdb"", ""%36\icondata.ico"""50USER_UserPM_8AddProgmanItem"""Rev Guide to Access"", ""Samples"", ""%37\samples.mdb"", ""%38\iconsamp.ico"""51USER_UserPM_9AddProgmanItem"""Rev Guide to Access"", ""Sqltest"", ""%39\sqltest.mdb"", ""%40\iconsql.ico"""

SAMPSET/SQLTEST.MDB

SAMPSET/_MSSETUP.EXE

EXAMPLES/MDBS/CONTACT2.MDB

EXAMPLES/MDBS/CONTACT6.MDB

EXAMPLES/MDBS/CONTACT9.MDB

EXAMPLES/MDBS/CONTACTS.MDB

EXAMPLES/MDBS/OLETOOLS.MDB

EXAMPLES/MDBS/PIMCODE.MDB

EXAMPLES/MDBS/PIMDATA.MDB

EXAMPLES/MDBS/SAMPLES.MDB

EXAMPLES/MDBS/SQLTEST.MDB

EXAMPLES/FILES/CONSTANT.TXT' Key CodesGlobal Const KEY_LBUTTON = &H1Global Const KEY_RBUTTON = &H2Global Const KEY_CANCEL = &H3Global Const KEY_MBUTTON = &H4 ' NOT contiguous with L & RBUTTONGlobal Const KEY_BACK = &H8Global Const KEY_TAB = &H9Global Const KEY_CLEAR = &HCGlobal Const KEY_RETURN = &HDGlobal Const KEY_SHIFT = &H10Global Const KEY_CONTROL = &H11Global Const KEY_MENU = &H12Global Const KEY_PAUSE = &H13Global Const KEY_CAPITAL = &H14Global Const KEY_ESCAPE = &H1BGlobal Const KEY_SPACE = &H20Global Const KEY_PRIOR = &H21Global Const KEY_NEXT = &H22Global Const KEY_END = &H23Global Const KEY_HOME = &H24Global Const KEY_LEFT = &H25Global Const KEY_UP = &H26Global Const KEY_RIGHT = &H27Global Const KEY_DOWN = &H28Global Const KEY_SELECT = &H29Global Const KEY_PRINT = &H2AGlobal Const KEY_EXECUTE = &H2BGlobal Const KEY_SNAPSHOT = &H2CGlobal Const KEY_INSERT = &H2DGlobal Const KEY_DELETE = &H2EGlobal Const KEY_HELP = &H2F

' KEY_A thru KEY_Z are the same as their ASCII equivalents: 'A' thru 'Z'' KEY_0 thru KEY_9 are the same as their ASCII equivalents: '0' thru '9'

Global Const KEY_NUMPAD0 = &H60Global Const KEY_NUMPAD1 = &H61Global Const KEY_NUMPAD2 = &H62Global Const KEY_NUMPAD3 = &H63Global Const KEY_NUMPAD4 = &H64Global Const KEY_NUMPAD5 = &H65Global Const KEY_NUMPAD6 = &H66Global Const KEY_NUMPAD7 = &H67Global Const KEY_NUMPAD8 = &H68Global Const KEY_NUMPAD9 = &H69Global Const KEY_MULTIPLY = &H6AGlobal Const KEY_ADD = &H6BGlobal Const KEY_SEPARATOR = &H6CGlobal Const KEY_SUBTRACT = &H6DGlobal Const KEY_DECIMAL = &H6EGlobal Const KEY_DIVIDE = &H6FGlobal Const KEY_F1 = &H70Global Const KEY_F2 = &H71Global Const KEY_F3 = &H72Global Const KEY_F4 = &H73Global Const KEY_F5 = &H74Global Const KEY_F6 = &H75Global Const KEY_F7 = &H76Global Const KEY_F8 = &H77Global Const KEY_F9 = &H78Global Const KEY_F10 = &H79Global Const KEY_F11 = &H7AGlobal Const KEY_F12 = &H7BGlobal Const KEY_F13 = &H7CGlobal Const KEY_F14 = &H7DGlobal Const KEY_F15 = &H7EGlobal Const KEY_F16 = &H7F

Global Const KEY_NUMLOCK = &H90

'OLE Control'ActionsGlobal Const OLE_CREATE_EMBED = 0Global Const OLE_CREATE_NEW = 0 'for VB compatibilityGlobal Const OLE_CREATE_LINK = 1Global Const OLE_CREATE_FROM_FILE = 1 'for VB compatibilityGlobal Const OLE_COPY = 4Global Const OLE_PASTE = 5Global Const OLE_UPDATE = 6Global Const OLE_ACTIVATE = 7Global Const OLE_CLOSE = 9Global Const OLE_DELETE = 10Global Const OLE_INSERT_OBJ_DLG = 14Global Const OLE_PASTE_SPECIAL_DLG = 15Global Const OLE_FETCH_VERBS = 17

'OLETypeGlobal Const OLE_LINKED = 0Global Const OLE_EMBEDDED = 1Global Const OLE_NONE = 3

'OLETypeAllowedGlobal Const OLE_EITHER = 2

'UpdateOptionsGlobal Const OLE_AUTOMATIC = 0Global Const OLE_FROZEN = 1Global Const OLE_MANUAL = 2

'AutoActivate modes'Note that OLE_ACTIVATE_GETFOCUS only applies to objects that'support "inside-out" activation. See related Verb notes below.Global Const OLE_ACTIVATE_MANUAL = 0Global Const OLE_ACTIVATE_GETFOCUS = 1Global Const OLE_ACTIVATE_DOUBLECLICK = 2

'SizeModesGlobal Const OLE_SIZE_CLIP = 0Global Const OLE_SIZE_STRETCH = 1Global Const OLE_SIZE_AUTOSIZE = 2Global Const OLE_SIZE_ZOOM = 3

'DisplayTypesGlobal Const OLE_DISPLAY_CONTENT = 0Global Const OLE_DISPLAY_ICON = 1

'Special Verb ValuesGlobal Const VERB_PRIMARY = 0Global Const VERB_SHOW = -1Global Const VERB_OPEN = -2Global Const VERB_HIDE = -3Global Const VERB_INPLACEUIACTIVATE = -4Global Const VERB_INPLACEACTIVATE = -5

'Catagory property bitmask for Property objectGlobal Const PROP_CAT_NA = 0Global Const PROP_CAT_LAYOUT = 1Global Const PROP_CAT_DATA = 2Global Const PROP_CAT_EVENT = 4Global Const PROP_CAT_OTHER = 8

EXAMPLES/FILES/DDEDOC.DOC DATE \* MERGEFORMAT 10/13/94

,

Dear

EXAMPLES/FILES/DDEGETAC.TXTSub MAIN 'establish a connection to the database, prompt for and 'retrieve a name, then close our connection to the 'database.

On Error Resume Next

Dim iChannel, sSearchText Dim sResults

'opens Access and returns to Word

Shell "msaccess" AppActivate "Microsoft Word", 1

'establish our connection to Access. Start out with the System 'topic so we can get the database opened up with the 'OpenDatabase method. Sendkeys is used to get passed the opening 'application screen.

iChannel = DDEInitiate("MSACCESS", "SYSTEM") SendKeys "{enter}" DDEExecute iChannel, "[OpenDatabase c:\wrox\contacts.mdb]" AppActivate "Microsoft Word", 1

'We've now got the database as a topic; shut down 'this connection to re-establish a connection to the 'specific database (CONTACTS.MDB) DDETerminate iChannel

'Connect to the database iChannel = DDEInitiate("MSACCESS", "CONTACTs;SQL") 'Find out what to search for sSearchText$ = InputBox$("Enter Last Name to Find")

'Build the string on the DDE Server DDEPoke iChannel, "SQLText", "Select [FirstName], [LastName], " DDEPoke iChannel, "SQLText", "[Address] " DDEPoke iChannel, "SQLText", "from [Contacts] " DDEPoke iChannel, "SQLText", "where [LastName] = '" + sSearchText$ + "';"

'get the results row, NextRow returns the first row on its 'first use sResults$ = DDERequest$(iChannel, "NextRow")

'print it out for the user Insert sResults$ + Chr$(13)

'shut down our connection DDETerminate iChannel

End Sub

EXAMPLES/FILES/DDESMPL.XLSSheet: Sheet1

Sheet: Sheet2

Employee Name

Salary

Hire Date

Steve Jo Smith

John Linfrank

Gordon Sregorov

EXAMPLES/FILES/DOSPELLC.TXTSub MAIN'WROX Spell Checking Macro'Revolutionary Guide To Microsoft Access 2.0

'First, create an array to put the words in that need to be 'checked. Change the dimensioning of this array (currently 50 'if you need to allow for more suggested replacement words

Dim WordsList$(50)

'In our Access code, we set the text to check to a variable for'WordBasic to work with. We tell WordBasic to retrieve this'variable and use it as the word to check.SpellCheckWords$ = GetDocumentVar$("txtProofingText")

'Go out and check the spelling of the words; the number'of replacements for a possibly misspelled words is 'returned by the ToolsGetSpelling function. If there 'are no suggestions it returns -1PossibleMisSpelled = ToolsGetSpelling(WordsList$(), SpellCheckWords$)

'Change the array back to a string, we need to store it for Access 'to be able to retrieve it.SuggestionList$ = WordsList$(0)

'Loop through and make our suggestion list if any misspelling'possibles were found.If PossibleMisSpelled > 0 ThenFor i = 1 To PossibleMisSpelled - 1SuggestionList$ = SuggestionList$ + Chr$(13) + WordsList$(i)Next iEnd If

'Set up the return variables for Access to retrieve.SetDocumentVar "SpellSuggestions", SuggestionList$SetDocumentVar "NumSuggestions", Str$(PossibleMisSpelled)

'Return to AccessEnd Sub

EXAMPLES/FILES/FOXUSER.DBFTYPEIDNAMEREADONLYCKVALDATAUPDATEDPREFWWINDCMDF5986805/20/2003

PREFWWINDCMDF5986805/20/2003

PREFWPROJECTSF6553505/20/2003

PREFWPRJMRULISTF4634905/20/2003

PREFWBLDOPTSF43697!05/20/2003

PREFWTTOOLBAR"F47465#05/20/2003

PREFWGTOOLBARF14985G05/20/2003

EXAMPLES/FILES/FOXUSER.FPT

EXAMPLES/FILES/INIMGR.MDA

EXAMPLES/FILES/INVNTRY.DBFBOOK_NAMEQUANTITYPRICESALECOSTAll Too Human1.000008.0000020.000007.00000

Don Quixote8.0000010.000000.000003.50000

Hamlet3.000003.5000010.0000015.50000

Histories1.000005.950000.000004.90000

Kidnapped3.0000023.450000.0000017.23000

Madame Bovary9.0000020.4800035.000009.76000

Moby Dick2.0000010.350005.0000014.54000

Paradise Lost3.0000017.5000010.0000012.95000

Principia Mathematica3.000004.730000.000002.98000

Spring Snow11.0000022.7300040.000004.97000

The Brothers Karamazov5.000008.1000025.0000017.41000

The Joy of Cooking4.0000010.950005.000007.35000

The Odyssey4.000006.980000.0000011.67000

The Prince1.000002.7000010.0000013.58000

The Republic3.000001.250005.000001.06000

The Tempest8.0000012.600000.0000012.62000

The Time Machine7.0000011.4800020.000004.02000

Thus Spoke Zarathustra5.000009.230000.000008.80000

Zorba the Greek1.0000010.990005.000007.86000

All Too Human1.000008.0000020.000007.00000

Don Quixote8.0000010.000000.000003.50000

Hamlet3.000003.5000010.0000015.50000

Histories1.000005.950000.000004.90000

Kidnapped3.0000023.450000.0000017.23000

Madame Bovary9.0000020.4800035.000009.76000

Moby Dick2.0000010.350005.0000014.54000

Paradise Lost3.0000017.5000010.0000012.95000

Principia Mathematica3.000004.730000.000002.98000

Spring Snow11.0000022.7300040.000004.97000

The Brothers Karamazov5.000008.1000025.0000017.41000

The Joy of Cooking4.0000010.950005.000007.35000

The Odyssey4.000006.980000.0000011.67000

The Prince1.000002.7000010.0000013.58000

The Republic3.000001.250005.000001.06000

The Tempest8.0000012.600000.0000012.62000

The Time Machine7.0000011.4800020.000004.02000

Thus Spoke Zarathustra5.000009.230000.000008.80000

Zorba the Greek1.0000010.990005.000007.86000

EXAMPLES/FILES/INVNTRY.XLSSheet: Inventory

Book Name

Quantity

Price

Sale

Cost

All Too Human

Don Quixote

Hamlet

Histories

Kidnapped

Madame Bovary

Moby Dick

Paradise Lost

Principia Mathematica

Spring Snow

The Brothers Karamazov

The Joy of Cooking

The Odyssey

The Prince

The Republic

The Tempest

The Time Machine

Thus Spoke Zarathustra

Zorba the Greek

EXAMPLES/FILES/WROX.DOT

_:

EXAMPLES/FILES/WROXCONS.TXTOption Compare Database 'Use database order for string comparisons

' MsgBox parametersGlobal Const MB_OK = 0 ' OK button onlyGlobal Const MB_OKCANCEL = 1 ' OK and Cancel buttonsGlobal Const MB_ABORTRETRYIGNORE = 2 ' Abort, Retry, and Ignore buttonsGlobal Const MB_YESNOCANCEL = 3 ' Yes, No, and Cancel buttonsGlobal Const MB_YESNO = 4 ' Yes and No buttonsGlobal Const MB_RETRYCANCEL = 5 ' Retry and Cancel buttons

Global Const MB_ICONSTOP = 16 ' Critical messageGlobal Const MB_ICONQUESTION = 32 ' Warning queryGlobal Const MB_ICONEXCLAMATION = 48 ' Warning messageGlobal Const MB_ICONINFORMATION = 64 ' Information message

EXAMPLES/FILES/XLDEMO.XLSSheet: Sheet1

Sheet: Sheet2

Sheet: Sheet3

Sheet: Sheet4

Sheet: Sheet5

Sheet: Sheet6

Sheet: Sheet7

Sheet: Sheet8

Sheet: Sheet9

Sheet: Sheet10

Sheet: Sheet11

Sheet: Sheet12

Sheet: Sheet13

Sheet: Sheet14

Sheet: Sheet15

Sheet: Sheet16

Date

Description

Withdrawals

Deposits