View Single Post
  #2 (permalink)  
Old April 15th, 2008, 07:31 AM
mmcdonal mmcdonal is offline
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

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
Reply With Quote