home *** CD-ROM | disk | FTP | other *** search
/ CD Direkt 1995 #1 / Image.iso / cdd / winanw / datacess / datacess.doc < prev    next >
Encoding:
Text File  |  1994-01-17  |  11.3 KB  |  400 lines

  1.  
  2.  
  3.  
  4.  
  5.                Data Accessor 1.0 For Windows
  6.  
  7.  
  8. Data Accessor For Windows is a Microsoft (TM)Access Database Filer.
  9. It reads and writes Microsoft (TM)Access databases without (TM)Access! 
  10. Create Tables, Design Databases, or just browse through them!
  11.  
  12.  
  13.  
  14.                  Installation:
  15.  
  16. After Unzipping the file, at the DOS prompt type:
  17.         COPY *.DLL C:\WINDOWS\SYSTEM
  18.         COPY *.VBX C:\WINDOWS\SYSTEM
  19.  
  20. AND YOU CAN LEAVE THE OTHER FILES THERE IN THE DIRECTORY.
  21.  
  22. Note: This program requires VBRUN300.DLL which is not supplied.
  23. Your program will not run without it.
  24.  
  25.  
  26.  
  27.                    Basic Operation:
  28.  
  29.  
  30.                           Adding Fields to a Table
  31.  
  32.  
  33. To add a field to a table
  34.  
  35.     1.    Open an existing database. The Tables window is 
  36. displayed.
  37.     2.    Select the desired table and choose the Design 
  38. button.   
  39.     3.    Choose the Add button in the Fields grid to add 
  40. fields to the table.  The Add Field dialog is 
  41. displayed.
  42.     4.    Enter the field name.  
  43.  
  44.     For Data Accessor databases, the field name must 
  45. follow the same rules as any Data Accessor  object 
  46. name.  For external databases, field names must 
  47. comply with the rules established by each 
  48. database vendor.
  49.  
  50.     5.    Enter the data type for the field.  
  51.  
  52.     The field's data type determines what kind of 
  53. information is to be stored in the fielda number or a 
  54. string, for example.  If the field data type is string, 
  55. you must also enter a value in the Field Size text 
  56. box.  The field size represents the maximum 
  57. number of characters that can be entered in the 
  58. field.  The combined size of all the fields in a table 
  59. cannot exceed 2000 bytes (each character in a 
  60. string field requires one byte).
  61.  
  62.  
  63. Note   
  64. You can add additional fields to a database table, 
  65. but you cannot rename, modify, or delete fields 
  66. without deleting the entire table and rebuilding each 
  67. field.  For this reason, double check your design 
  68. before choosing OK in the Add Field window.
  69.  
  70.  
  71.  
  72. Repeat steps 3  5 to add additional fields to your 
  73. table. 
  74.  
  75.                             Closing a Database
  76.  
  77. When you are finished using a database, you should 
  78. close the database so it becomes available for 
  79. others to use. 
  80.  
  81.      To close a database
  82.  
  83.     1.    Choose the Close Database command from the 
  84. File menu. 
  85.  
  86.  
  87.                               Compacting a Database
  88.  
  89. Use the Compact Database command to copy all 
  90. data from one database to another and to organize 
  91. the data in the resulting database contiguously so 
  92. that disk space can be recovered.  
  93.  
  94.  
  95.   To compact a database
  96.  
  97.     1.    Make sure the database you want to compact is 
  98. closed.
  99.     2.    Choose the Compact Database command on the 
  100. File menu.
  101.  
  102. 3.    In the displayed dialog, enter the name of the 
  103. database you want to compact from and choose 
  104. OK.  Another dialog is displayed.
  105.  
  106.     4.    Enter the name of the file where the new 
  107. compacted database is to be copied.  
  108.  
  109.  
  110.  
  111. Warning   Do not specify the same name for both 
  112. the original (step 3) and compacted (step 4) files.  If 
  113. you do, and the Compact Database operation is not 
  114. completed, your database will be deleted.  In 
  115. addition, if both files are on the same disk, be sure to 
  116. provide enough room for both the original and the 
  117. compacted database.
  118.  
  119.  
  120.                            Creating a Database
  121.  
  122. To create a Data Accessor database
  123.  
  124.     1.    Choose the New Database command from the 
  125. File menu.  
  126.         From the submenu, select the type of database you 
  127. want to create (Microsoft Access version 1.0, or 
  128. Microsoft Access version 1.1).
  129.  
  130. 2.    Enter the name of the database you want to create 
  131. in the displayed dialog.  
  132.  
  133.         
  134. Note    The file extension must be .MDB.  Do not enter 
  135. or choose the name of an existing .MDB file. 
  136.  
  137.  
  138. 3.    Choose OK to accept the new database name, or 
  139. Choose Network (if available) to connect to a 
  140. network drive.
  141.     Once the database file has been created, use the 
  142. Data Accessor to add new tables and indexes to 
  143. store the data. 
  144.  
  145.  
  146.                 Creating an Index
  147.  
  148. Indexes improve performance and prevent 
  149. duplicate records in your tables.
  150.  
  151. To create an index:
  152.  
  153.     1.    Use the Data Accessor to create a new 
  154. database, or open an existing database.
  155.     2.    From the database window, choose the New 
  156. button to create a new table, or choose the 
  157. Design button to modify an existing table.  The 
  158. Table Design window is displayed.
  159.     3.    Choose the Add button in the Indexes portion of 
  160. the Table Design window.  The Add Index 
  161. dialog is displayed.
  162.     4.    Enter a name for the index in the Index Name 
  163. text box.  
  164.     5.    Select a field name from the Fields in Table 
  165. list.  Choose Add (Asc) to create an ascending 
  166. index, or Add (Dec) to create a descending 
  167. index.  
  168.  
  169.  
  170. Note    There is no limit to the number of fields in 
  171. an index.  However, the combined length of the 
  172. field names in an index must be less than 254 
  173. characters.   
  174.  
  175.  
  176.  
  177.     6.    Select the appropriate check boxes in the 
  178. bottom of the dialog.
  179.         Select the Require Unique Index Values check box 
  180. to prevent duplicate records in the table. 
  181.  
  182.  
  183.  
  184. Note    If a database contains duplicate records or 
  185. Null values in an index, the Data Accessor cannot 
  186. create a new index with either the Require Unique 
  187. Index Values or Primary Index check boxes 
  188. selected.
  189.  
  190.  
  191.  
  192.         Select the Primary Index check box to indicate the 
  193. index is to serve as the primary basis for 
  194. sorting the table.  Setting this check box also 
  195. indicates that the index is to be unique. 
  196.     7.    Choose Done to create the index.
  197.  
  198.  
  199.  
  200. Note    Not all fields may be used in an index.  For 
  201. example, MEMO or binary object fields cannot be 
  202. specified in an index.
  203.  
  204.  
  205.                  Creating New Tables
  206.  
  207. All the data in your database are stored in tables.  A 
  208. table is defined as a set of one or more fields.  The 
  209. type of data a field can contain is determined by 
  210. attributes such as data type and size. 
  211.  
  212.  
  213.  
  214.                             To Create a New Table
  215.  
  216.     1.    Open an existing database, or create a new 
  217. database.  
  218.  
  219.     Once a database has been opened, the Tables 
  220. window is displayed.
  221.  
  222.     2.    Choose the New button and enter the name of the 
  223. table you want to create.  Choose OK to accept the 
  224. new table name and display the Table Design 
  225. window.   
  226.  
  227.     3.    Create the tables fields.
  228.     4.    Add any desired indexes.
  229.     5.    Repeat steps 2  4 to create the remaining tables in 
  230. your database.
  231.     6.    Close the Table window using the window's 
  232. Control menu.  
  233.  
  234.  
  235.                          Deleting an Existing Table
  236.  
  237. To delete a table in a database
  238.  
  239.     1.    Choose Open Database from the File menu to 
  240. open an existing database.  The Database 
  241. window is displayed.
  242.     2.    Select the table you want to delete and choose 
  243. the Delete button.
  244.  
  245. Warning:   When you use the Data Accessor to 
  246. delete a table, all the data stored in that table is also 
  247. deleted.
  248.  
  249.                              Modifying Table Data
  250.  
  251. Once a database has been created, you use the Data Accessor to add
  252. records to a table, delete records from a table, or modify the data
  253. in a table.  To perform any of these tasks, you must first open a table.
  254.  
  255. To open a table:
  256.  
  257.     1.    Open an existing database.  The Tables window is displayed.
  258.         2.      Select the table you want to modify and choose the Open button.
  259. The Table Access window is displayed.  This window displays each of the table's
  260. fields and any data it contains.
  261.  
  262. You use the Table Access window to perform the following tasks:
  263.  
  264.     Add a record to a table.
  265.     Delete a record from a table.
  266.     Modify data in a record.
  267.     View the current records in a table.
  268.  
  269. To add a record to a table
  270.  
  271.     1.    Choose the Add button. 
  272.     2.    Enter data as desired in each field.
  273.         3.      To save the new record choose the Update button, or move to
  274.         another record.  To return the table to its previous state
  275.         (without saving changes), choose the Refresh button.
  276.  
  277. To delete a record from a table
  278.  
  279.     1.    Select the record you want to delete.  
  280.  
  281.     There are two ways to locate a record in the Table Access window:
  282.  
  283.         Use the data control at the bottom of the Table Access window to view
  284. the first, previous, next, or last record in the table.
  285.     Use the Find button to locate a record in a large database.  
  286.  
  287.         2.      Choose the Delete button and respond to the prompt.  If you
  288. answer 'Yes,' the record is immediately deleted and cannot be recovered.
  289.  
  290. To modify the data in a record
  291.  
  292.     1.    Select the record you want to modify (see step 1 above). 
  293.     2.    Enter data as desired.
  294.         3.      To save the new record choose the Update button, or move to
  295.  another record.  To return the table to its previous state
  296.  (without saving changes), choose the Refresh button.
  297.  
  298. To view the current records in the table
  299.  
  300.     1.    Choose the Refresh button. 
  301.  
  302.     Use the Refresh button to retrieve the current records from the table. 
  303.         If the database is being used by more than one user, use the Refresh
  304.         button to ensure you are working on the most recent data.
  305.  
  306.  
  307.  
  308. Note   If you add or change a record, and the values in the record's fields do
  309.  not meet the requirements set by the data type, or violate one of the 
  310. restrictions established by the index, an error occurs. The maximum length for
  311.  a record is 2000 characters. 
  312.  
  313.  
  314.                               Opening a Database
  315.  
  316.  
  317. To open an existing database
  318.  
  319.     1.    Choose the Open Database command from the File menu.  
  320.  
  321.  
  322.         2.      Enter the name of the database you want to open in the displayed
  323.         dialog.
  324.  
  325.         3.      Choose OK to open the database, or choose Network (if available)
  326.         to connect to a network drive.
  327.  
  328. Once the database file has been opened, use the Data Accessor to add new tables
  329. and indexes or to modify the existing tables or data.
  330.  
  331.  
  332.                                Repairing a Database
  333.  
  334. You may need to repair the database if Data Accessor quits unexpectedly: for
  335. example, if there is a power outage or your computer experiences a hardware 
  336. problem.  If your Data Accessor database is damaged, you can use the Data
  337. Accessor to attempt to repair it. 
  338.  
  339.  
  340.   To repair a database
  341.  
  342.     1.    From the File menu, choose Repair Database.
  343.  
  344.         The Repair Database dialog is displayed.  Use the dialog to specify the
  345.         name of the database you want to repair.
  346.  
  347.     2.    Choose OK.
  348.  
  349.  
  350.  
  351. Warning   Not all database damage can be repaired.  Remember to back up your
  352. database files regularly to avoid data loss that cannot be recovered with the
  353. Repair Database operation.
  354.  
  355.  
  356.  
  357. The Repair Database operation checks all pages in the database for correct
  358. linkage, validates all system tables, and validates all indexes.  
  359. All pages that cannot be salvaged  such as invalid references to other pages
  360. are discarded.
  361. When a database is repaired, it may increase in size. This is because the
  362. process of creating indexes may leave some deleted pages in the database. 
  363. It is always a good idea to compact the database after any repair to
  364. eliminate unneeded pages.
  365.  
  366.  
  367.  
  368.    I hope this helps you get started managing your own databases with
  369.    Data Accessor.
  370.  
  371.                         Richard Ratayczak
  372.                         Disk And Desk Software
  373.  
  374.  
  375.  
  376. THERE IS NO EXPRESSED OR IMPLIED WARRANTY. USE THIS PROGRAM AT YOUR OWN RISK.
  377. DISK AND DESK SOFTWARE WILL NOT BE HELD ACCOUNTABLE FOR ANY OR ALL DAMAGE TO
  378. HARDWARE OR SOFTWARE WHILE USING THIS PROGRAM.
  379.  
  380. Access(TM) and Microsoft Access(TM) are registered trademarks of Microsoft Corp.
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.