home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / access / diverses / params / params.txt < prev   
Text File  |  1995-01-11  |  3KB  |  79 lines

  1. Parameter Typing Utility
  2.  
  3. This utility will help automate the process of explicitly 
  4. defining the data types of parameters. It will loop through 
  5. all of the queries in a database and for all parameters 
  6. which are not explicitly typed, prompt for the type. 
  7.  
  8. How to Install: 
  9. ---------------
  10. This utility is a single form which can be installed as an Add-In or the form, Parameter Typing Utility, can be imported into any database. 
  11.  
  12. To install as an Add-In:
  13. 1. Open any database in Access.
  14. 2. From the File menu choose Add-ins and then select Add-in 
  15. Manager.
  16. 3. Choose Add New.
  17. 4. Locate PARAMS.MDA and choose OK. 
  18. 5. Restart Access.
  19. To run the Add-in, choose Add-ins from the File menu and 
  20. then select Start Parameter Typing Utility.
  21. Press the Start button to start looping through the queries.
  22. Press the List Parameters button to create a list of all 
  23. parameters and queries. 
  24.  
  25. To import the form: 
  26. All of the code is behind the Parameter Typing Utility form. 
  27. This form can be imported into any database. To start the 
  28. utility, open the form. 
  29. Press the Start button to start looping through the queries.
  30. Press the List Parameters button to create a list of all 
  31. parameters and queries. 
  32.  
  33. Updating Append and Update queries only: 
  34. ----------------------------------------
  35. There is a check box, which is checked by default, to indicate
  36. whether only Append and Update queries should be checked or if 
  37. all queries should be checked. 
  38.  
  39. How it works: 
  40. -------------
  41. The code loops through each query. For each parameter that is 
  42. not already explicitly typed, the form will prompt for the data 
  43. type. If you are unsure of the data type, you can either 
  44. skip the parameter or you can switch away from the form and 
  45. check the table. You also have the option of skipping a 
  46. query or quitting. 
  47. The List Parameters button will create a table with the 
  48. Query Name, Parameter Name, and a Yes/No field indicating 
  49. whether the parameter is explicitly typed. 
  50.  
  51. Why do this?
  52. ------------
  53. Using Jet 2.5, append and update queries that rely on 
  54. parameters may fail with type mismatch errors. The data 
  55. types of the parameters need to be explicitly typed in order 
  56. for the queries to execute successfully. This utility helps 
  57. automate the process of explicitly typing the parameters.
  58.  
  59. Note: There is a Knowledge Base Article in process that 
  60. describes this issue in more detail.
  61.  
  62. Disclaimer:
  63. -----------
  64.  
  65. This utility is provided "as is" without warranty of any kind, 
  66. either expressed or implied, including without limitation the 
  67. implied warranties of merchantability and fitness for a 
  68. particular purpose.
  69.  
  70. The user assumes the entire risk as to the accuracy and use of 
  71. the document. In no event shall Microsoft or its suppliers be 
  72. liable for any damages whatsoever, including without limitation, 
  73. direct, consequential, indirect, incidental, loss of profit or 
  74. special damages, even if Microsoft has been advised of such 
  75. damages. Because some states do not allow the limitation of 
  76. consequential or incidental damages, the foregoing limitation 
  77. damages may not apply to you.
  78.  
  79.