TrialSet
   

    This sample demonstrates the process of preparing a db for trial use, by laying down the following settings -

        (a) Number of permitted uses.
        (b) Trial expiry date.
   Out of (a) & (b) above, whichever falls earlier, displays a suitable message and causes the db to become unavailable for further use.
   Count of uses is stored in a hidden table named T_Status. Even if the user gains access to this table, and tries to edit it, the overall settings are not easily disturbed as the criteria is linked to autonumber value which is controlled programmatically.
   
Expiry date gets embedded in VBA code - and therefore free from user interference, once the file is converted to mde.
 
    Note - In practical use, before distributing an application with such features, following steps should be taken -
    (a) After the desired settings for free trial have been implemented, delete the form F_LockSet.
    (b) In the start-up dialog box (Tools > Startup), select F_Main_Start (in the combo box at top right) as the form to be opened at start up.
    (c) Go to VBA editor (press Alt + F11), save & compile (Debug > Compile).
    (d) Convert to mde

www.mantis.irارائه اي از خانه اكسس ايران>

Raha