home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / database / prmptacc.zip / BOOKFIX.TXT next >
Text File  |  1993-03-25  |  4KB  |  94 lines

  1. Summary of corrections to "Running Microsoft Access" and the
  2. PROMPT.MDB database as of 3/25/93.
  3.  
  4. Chapter 12, Page 270, line 2
  5. should read: "... or choose the Select Form command from the 
  6. Edit menu)"
  7.  
  8.  
  9. Chapter 14, Page 312, "Adding Calculated Values"
  10. To properly display totals when some months have no sales for
  11. a particular item, the formula should read:
  12.  =IIf(IsNull([Jan]),0,[Jan]) +IIf(IsNull([Feb]),0,[Feb])
  13.      +IIf(IsNull([Mar]),0,[Mar])
  14.  
  15.  
  16. Chapter 19, Page 402
  17. Using "Is Not Null" is not a good example of a single field validation
  18. rule.  Microsoft Access Version 1.0 checks validation rules only via
  19. form controls.  However, Access performs validation rule checks ONLY
  20. if data in the control changes.  If a user skips over a control bound
  21. to a field that must contain data (Not Null), leaving that control
  22. unchanged, Access will not enforce the validation rule.  You should
  23. check for Null in BeforeUpdate for the form.  A better example would be
  24. to create a rule that "Days to Build" must always be greater than zero
  25. (>0) and include a default value of 1 for the "Days to Build" field.
  26.  
  27.  
  28. Chapter 19, Pages 406-407
  29. The section on "Assisting Data Entry" should also include an explanation
  30. for the second macro action in the sample.  The SendKeys {F2} causes the
  31. cursor to position at the end of the data value that was just copied 
  32. into the [Long Description] control.  This is handy to position the
  33. entry point ready to type additional information.
  34.  
  35.  
  36. Chapter 19, Page 409, Figure 19-12
  37. The setting for the Item argument in the second SetValue should
  38. read:  Forms![Catalog - Chap 14]![Price]
  39.  
  40.  
  41. Chapter 19, Page 411, Figure 19-15
  42. The setting for the SQL Statement argument in the RunSQL action
  43. should read:
  44.   DELETE DISTINCTROW [Item Components].[Catalog Item ID]
  45.    FROM [Item Components] WHERE [Item Components].[Catalog Item ID] =
  46.    Forms![Catalog - Chap 14]![Catalog Item ID];
  47.  
  48.  
  49. Chapter 19, Page 411, paragraph immediately under Figure 19-15
  50. should begin:
  51.   "Notice that the Condition argument in the first Action of the
  52. Delete Items macro uses ..."
  53.  
  54.  
  55. Chapter 19, Pages 424-426, "Orders Form Properties" and
  56. "Picking a Customer on the Orders Form"
  57. Although setting Allow Updating to Any Tables does let you update
  58. customer information on the "one" side of the query as documented,
  59. it also has the unwanted side effect of attempting to delete the
  60. customer row when you try to delete an order.  This works OK when
  61. you are deleting the last order for a customer (but the customer
  62. row disappears!), but generates an error if the customer still has
  63. orders outstanding.  The sample database has been changed to set
  64. Allow Updating to Default Tables.  The desired update to customer
  65. information is accomplished with unbound controls and additional
  66. macro routines in the Orders macro.
  67.  
  68.  
  69. Chapter 19, Page 430, Figure 19-39
  70. The setting for the Macro Name argument in the RunMacro action
  71. should read:
  72.   Orders - Chap 19.Calc Tax
  73.  
  74.  
  75.  
  76. Improvements to PROMPT.MDB:
  77.  
  78. OnDelete macros have been added to all forms in the application to
  79. trap all possible referential integrity violations and display a
  80. more informative message box or take appropriate cascading delete
  81. action.
  82.  
  83. Macros have been added to BeforeUpdate and AfterUpdate of the 
  84. Display / Add Components form to cause any change in Our Cost to 
  85. also be reflected in any related rows in the Catalog Items table.
  86.  
  87. Updates to Customer address information from the Orders form are now
  88. accomplished via unbound controls and macros.  See above.
  89.  
  90. An OnDelete macro has been added to the Orders Details Subform and the
  91. Catalog Subform to correctly re-calculate values on the main form
  92. whenever you delete a row in the subform.  Deleting a row does not
  93. trigger the subform AfterUpdate routine that handles this calculation
  94. when you change or add a record.