home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / DATABASE / ZIPCODES.ZIP / README.TXT < prev    next >
Text File  |  1993-10-18  |  9KB  |  212 lines

  1.                  ZIP CODE Database
  2.  
  3. This software product is copyrighted and all rights reserved by HELP 
  4. Software.  HELP Software warrants this software product for a period
  5. of 90 days.  Warranty requests must include invoice number and the 
  6. date of purchase.
  7.  
  8. The user hereby agrees that regardless of the form of any claim, liability
  9. for any damages or loss incurred because of this product shall not exceed 
  10. the registration fee or purchase price.
  11.  
  12. Return the manual, disk, and any backup copies to HELP Software if you
  13. decide not to accept this agreement.
  14.  
  15. _______________________________________________________________________
  16.  
  17. This ZIP Code database was put together for use in database applications.  
  18. It includes the City, State, and ZIP code for over 46,000 locations.  It 
  19. can be used to automatically look up a city and state when a valid ZIP 
  20. Code is entered and insert them into the proper fields in your database 
  21. to increase the speed and accuracy of data entry.
  22.  
  23. In some cases (usually in the outlying areas of larger cities) a city may 
  24. have both a place name and an official United States Postal Service name.  
  25. In these cases, the official name is used in the ZIP Code database.  In 
  26. future versions, both names may be included.  If this is something that 
  27. you need, please let me know.
  28.  
  29. These files are current through March of 1992.  If you would like the 
  30. current file you will need to purchase the updated file.  The ZIP Code 
  31. file is updated annually (in March).  Updates can be purchased for $18.00 
  32. each.  See the ORDER.FRM file for more information on purchasing current 
  33. files.  
  34.  
  35. Included are simple examples for using this database with dBase, 
  36. FoxPro, Clipper, and Microsoft Access.  There is also a stand alone 
  37. program ZIP.EXE which can be used to examine the database and to look up
  38. ZIP Codes or city and state combinations.
  39.  
  40. If you develop code for use with other database languages or if you 
  41. develop a more sophisticated program that you would like to donate, 
  42. please send it to me.  I would be glad to pass it along to those who may 
  43. have a need for the database, but lack the expertise to develop a program 
  44. for themselves.
  45.  
  46.  
  47. You should have the following files:
  48.  
  49. DEMO.DBF        Required for DEMO.PRG and FOXDEMO.PRG
  50. DEMO.PRG        Demo dBase program to demonstrate lookups
  51. FOXDEMO.PRG     Demo FOXPRO program to demonstrate lookups
  52. ORDER.FRM       Form to order updated ZIP Code Files
  53. README.TXT      This File
  54. ZIPCODES.DBF    ZIP code Database File in dBase format
  55. ZIP.EXE         ZIP code lookup / view program
  56.  
  57. The ZIP Code file is updated annually (in March).  Updates can be 
  58. purchased for $18.00 each.  See the ORDER.FRM file for more 
  59. information on purchasing updated files.
  60.  
  61. _______________________________________________________________________
  62.  
  63. USING ZIP.EXE - The ZIP Code Lookup Program
  64.  
  65. To use the ZIP Code lookup program type ZIP and press enter.  The first 
  66. time that you use ZIP an index will be created to speed up lookups. 
  67. Building the index can take a significant amount of time and disk space.
  68. Building the index took about 4 minutes on my 25MHz 486 machine.  
  69. Fortunately, this only has to be done once.
  70.  
  71. Once the index is created you will see a view of ZIP Codes, cities, and 
  72. states listed in ZIP Code order.  If you want to change the order that
  73. the ZIP Codes are listed press F2 and you will be able to choose the order
  74. that you wish.  The file can be viewed by ZIP Code, State, City, or State
  75. and City.
  76.  
  77. If you wish to look up a ZIP code press F3.  You will be prompted for the
  78. ZIP Code that you wish to find.  Enter the ZIP Code and press enter.  If
  79. the ZIP Code is a valid ZIP Code then you will see it immediately, if not
  80. then you will see the closest available ZIP CODE.
  81.  
  82. If you wish to look up a City, State combination then press F4.  You will
  83. be asked to enter a State and City.  You can enter the State, City, or both
  84. and you will be placed at the appropriate place in the database.  When you
  85. perform a lookup based on City and State, the order of the database will 
  86. automatically be changed (if necessary) to the State and City order.
  87.  
  88. If, for some reason, you wish to remove some of the records you can mark 
  89. them for deletion by pressing the space bar when the cursor is highlighting
  90. the record.  When you do you will see an asterisk to the far left of the
  91. record.  If you make a mistake simply press the space bar again and the
  92. mark will be removed.  Once you have marked the records that you want to 
  93. delete press F6 and the records will be removed permanently.  This process
  94. can take some time so please be patient.
  95.  
  96. To quit ZIP press ESCape.
  97.  
  98. _______________________________________________________________________
  99.  
  100. DBASE III, DBASE IV, CLIPPER, and FOXPRO DEMO PROGRAM
  101.  
  102. To try the dBase demo program, first load dBase.  At the dot prompt 
  103. type DO DEMO.  The first time that you run this program you will be 
  104. asked if you want to create an index file.  This index file is required to 
  105. perform the lookups.  Just press enter when you are asked this and 
  106. then wait for a few minutes while the index is built.
  107.  
  108. Next, a data entry screen will appear and you can enter a sample 
  109. record or two.  When you enter a valid ZIP Code, the city and state 
  110. will be looked up and inserted into the city and state fields.
  111.  
  112. This same program will compile using Clipper as well.
  113.  
  114. The FOXPRO demo program (FOXDEMO.PRG) works identically to the dBase 
  115. demo program.  Follow the directions listed above.  You will need to 
  116. type DO FOXDEMO instead of DO DEMO.  
  117.  
  118.  
  119. Microsoft ACCESS Example
  120.  
  121. The following example explains how to set up an automatic lookup 
  122. with Microsoft Access.  I would have preferred to distribute the 
  123. database already set up and ready to go, but the size of the resulting 
  124. file made this impractical.
  125.  
  126. After loading Microsoft Access select NEW DATABASE from the 
  127. FILE MENU.  Name the new database ZIPCODES.MDB and choose 
  128. OK.
  129.  
  130. Next select IMPORT from the FILE MENU.  For the database type 
  131. choose dBase III.  Select ZIPCODES.DBF for the file to import and 
  132. press the IMPORT button.  It will take a few minutes to 
  133. import the file.  When the import is complete you should see a 
  134. message telling you that the import was successful. Close the IMPORT 
  135. window.
  136.  
  137. Press the DESIGN button to change the design of the ZIPCODES 
  138. table.  Highlight the ZIPCODE Field by pressing the grayed area 
  139. directly to the left of the ZIPCODE field.  Press the KEY icon to make 
  140. the ZIPCODE field the primary key.  A picture of a key should appear 
  141. next to the ZIPCODE field name. Select SAVE from the FILE MENU 
  142. to save the changes you made and wait a few minutes for the index to 
  143. be created.  Now close the DESIGN window.
  144.  
  145. Now press the NEW button to create a new table.  Enter the following 
  146. fields into this table:
  147.     
  148. Field Name      Data Type       Field Size
  149.  
  150. First Name        Text          30 characters
  151. Last Name         Text          30 characters
  152. Address           Text          30 characters
  153. Zip Code          Text           5 characters
  154. City              Text          30 characters
  155. State             Text           2 characters
  156. Phone             Text          10 characters
  157.  
  158. Select SAVE from the FILE MENU and name the table DATA ENTRY.  When 
  159. you are asked for a primary key just select NO.  Close the NEW TABLE 
  160. window.
  161.  
  162. Select RELATIONSHIPS from the EDIT MENU.  Make the ZIPCODES table the 
  163. primary table and DATA ENTRY the related table.  The type of the 
  164. relationship should be set to many.
  165.  
  166. In the SELECT MATCHING FIELDS combo box select ZIP CODE then press the 
  167. ADD button then CLOSE the window.
  168.  
  169. Next select QUERY from the Database window and select NEW to create a 
  170. new query.  Add both the DATA ENTRY table and the ZIPCODES table.  Next 
  171. double click on the following fields from the DATA ENTRY table to add 
  172. them to the query grid:
  173.  
  174.     First Name
  175.     Last Name
  176.     Address
  177.     Zip Code
  178.  
  179. From the ZIPCODES table double click on the City and State fields.
  180.  
  181. From the DATA ENTRY table double click on the Phone field.
  182.  
  183. Save the query with the name LOOKUP QUERY and close the query 
  184. window.
  185.  
  186. Now press the FORM button from the DATABASE WINDOW and then press the 
  187. NEW button to create a new form.  Select LOOKUP QUERY as the query to 
  188. build the FORM from then press the FORM WIZARDS button.
  189.  
  190. Choose the SINGLE-COLUMN Wizard.  When you are asked which fields you want 
  191. to add to your form press the >> button to move all fields into the new 
  192. form and then press the NEXT button.  Next click on EMBOSSED and then NEXT.
  193.  
  194. Now press the OPEN button to open the form.  Save the form with the name 
  195. LOOKUP FORM.
  196.  
  197. Try adding a couple of records.  When you get to the ZIP CODE field try 
  198. punching in your own ZIP Code and let ACCESS look up the city and state 
  199. for you.
  200.  
  201. If you wish, you can prevent editing in the City and State fields and 
  202. skip over them entirely by changing the ENABLED property of the City and 
  203. State controls in the LOOKUP FORM to NO.
  204.  
  205. If you have any comments, suggestions, or questions please contact me at:
  206.  
  207. HELP Software
  208. PO BOX 1423
  209. Raymore, MO 64083
  210. (816) 331-5809
  211. CompuServe 73720,2530
  212.