1|)Security Wizard Anyone that has set up Jet security on an application knows how difficult and confusing it can be. The Security Wizard is a tool that will allow you to setup your own security mechanism in your Access application without having to implement Jet security. Running the wizard from Tools/Add-ins/Security Add-In will copy several objects into your application. It will drop a table (tblOperators) into your application that will contains the list of users of your app and their password (passwords are encrypted using very simple XOR encryption.) Also, it will drop several modules, two class modules(GlobalProperties and SecurityClass) and one standard module (basMiscSecurityFunctions). (NOTE: The basMiscSecurityFunctions module has an IsLoaded function in it. If you already have an IsLoaded function in your application you will needed to delete if from the basMiscSecurityFunctions module. Delete the function only, not the whole module). Also, several forms are added to your project. Three of them (frmCreateUser, frmChangePassword, frmGetUserName) are used by the class module. The fourth form (frmEditUsers) can be used to manage the user accounts (make users administrators for example). Once you run the Security wizards you add the following to the startup procedure of your application: PWs.ConfirmPassword Once the user logs in you can query there user name or authority using several GlobalProps properties as follows: For more information the Security Add-In please click here or read the help file that is distributed with the wizards. 2) Global Error Handler The second component is a "builder" that is installed by the setup routine. When you create a new procedure the builder will automatically add all of the error handling for it including the call to the Global Error Handler (which logs the error). To execute the builder, right click in the procedure and choose "Build" from the context menu. Now, instead of going straight to the Expression Builder, a selection box will appear. Choose "Global Error Handler" from the list and click OK. The error handling code will be automatically inserted into your procedure. For more information on the Error Handling Add-Ins or error handling in general please click here or read the help file that is distributed with the wizards. 3)Many-to-Many Wizard For more information the Many-to-Many wizards or table relationships in general please click here or read the help file that is distributed with the wizards. 4) Name Builder The Name Builder will correctly prefix a control with the right convention based on its type. To use it (the name builder is installed by the setup program) simply select the control and view its property sheet. Select the Name property from the property sheet. Click on the Build (...) button that is to the right of the property. It will take the current name that is in the property cell and replace it with the same value stripped of spaces and other undesirable text and prefixed with the right three letter convention. Coming soon: A Name Builder wizard that will rename ALL controls on a new form using proper conventions. Send us an e-mail so that we can notify you when the change is available. |
|站长邮箱|小黑屋|手机版|Office中国/Access中国
( 粤ICP备10043721号-1 )
GMT+8, 2025-4-2 12:59 , Processed in 0.185315 second(s), 16 queries .
Powered by Discuz! X3.3
© 2001-2017 Comsenz Inc.