p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Access VBA (http://p2p.wrox.com/forumdisplay.php?f=80)
-   -   CREATE TRIAL BASE (http://p2p.wrox.com/showthread.php?t=67398)

Vision G April 14th, 2008 03:34 PM

CREATE TRIAL BASE
 
I HAVE CREATED A ACCESS BASE FOR A CUSTOMER BUT I' D LIKE TO BE 30 DAYS TRIAL AT FIRST.

COULD YOU HELP ME WITH THIS


mmcdonal April 15th, 2008 07:31 AM

You could do something simple like create a hidden form that launches when the application opens, and then checks the date. The first time it opens, it stores the date somewhere. If the date is greater than the initial date plus 30 days, then do Application.Quit, otherwise, open the main form and close the hidden form.

I would store the initial date in a label on the hidden form.

Then you need to turn the .mdb into a .mde to prevent anyone from messing with the code.

The issue is how the data entered by the customer during the trail period is retrieved. You might create a routine that retireves the data from the mde file, and check this first to see if that works.

Did that help?

mmcdonal

Look it up at: http://wrox.books24x7.com

Vision G April 16th, 2008 09:38 AM

YES I 'VE ALREADY DONE THAT, BUT I'M AFRAID THAT THEY MIGHT FIND THE WAY
TO FIND IT!
I DON'T KNOW!

tHANX a LOT FOR HELP
MAYBE I LL DO THIS, I HAVEN'T OTHER OPTION!



All times are GMT -4. The time now is 01:40 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.