PC Review


Reply
Thread Tools Rate Thread

DB Timer/Expirary

 
 
Nick T
Guest
Posts: n/a
 
      28th Oct 2008
Hi,

Is there any way in which i can put a timer on my db so that it will only
work for a set period of time.
eg, if someone was to use my db, it would only work for eg. 24hrs until it
closed/stopped working??

Any suggestions??
Thanks in advance for any info.
 
Reply With Quote
 
 
 
 
Scott Lichtenberg
Guest
Posts: n/a
 
      28th Oct 2008
It sounds like you are looking to make a demo or trial version of your
application. You can create or use an existing parameters table with a
"FirstUse" field. Set up a startup form. In the Load event, check whether
the FirstUse field has been set. If not, set it. If it has been set,
evaluate whether the application has expired and if so, issue a quit
command. It might be nice to put in some code to warn the user as to how
much time he has left.

If you are looking to close down an application after a certain amount of
time, look at the OnTimer event.

One caveat - the code above will work, but is not secure. Someone with the
full version of Access (as opposed to the runtime) would be able to open
your database and reset the expiration date. Creating an mde or accde won't
help. A user with Access can modify tables in and mde (although they can't
modify your forms or code). You might have to encrypt your database, but
I've never done that so I can't tell you whether it would work.



"Nick T" <(E-Mail Removed)> wrote in message
news:72595932-82DE-4DD5-8081-(E-Mail Removed)...
> Hi,
>
> Is there any way in which i can put a timer on my db so that it will only
> work for a set period of time.
> eg, if someone was to use my db, it would only work for eg. 24hrs until it
> closed/stopped working??
>
> Any suggestions??
> Thanks in advance for any info.


 
Reply With Quote
 
Nick T
Guest
Posts: n/a
 
      28th Oct 2008
Hi,
Yes, demo/trial is the route im heading down with this.....
However, could you explain a little further - in laymans terms(?)

Thanks


"Scott Lichtenberg" wrote:

> It sounds like you are looking to make a demo or trial version of your
> application. You can create or use an existing parameters table with a
> "FirstUse" field. Set up a startup form. In the Load event, check whether
> the FirstUse field has been set. If not, set it. If it has been set,
> evaluate whether the application has expired and if so, issue a quit
> command. It might be nice to put in some code to warn the user as to how
> much time he has left.
>
> If you are looking to close down an application after a certain amount of
> time, look at the OnTimer event.
>
> One caveat - the code above will work, but is not secure. Someone with the
> full version of Access (as opposed to the runtime) would be able to open
> your database and reset the expiration date. Creating an mde or accde won't
> help. A user with Access can modify tables in and mde (although they can't
> modify your forms or code). You might have to encrypt your database, but
> I've never done that so I can't tell you whether it would work.
>
>
>
> "Nick T" <(E-Mail Removed)> wrote in message
> news:72595932-82DE-4DD5-8081-(E-Mail Removed)...
> > Hi,
> >
> > Is there any way in which i can put a timer on my db so that it will only
> > work for a set period of time.
> > eg, if someone was to use my db, it would only work for eg. 24hrs until it
> > closed/stopped working??
> >
> > Any suggestions??
> > Thanks in advance for any info.

>
>

 
Reply With Quote
 
Anthos
Guest
Posts: n/a
 
      28th Oct 2008
There is an application (freeware / opensource) called ActiveLock that
allows you to lock an Access Database for a set period of time.
It is probably best suited for your needs, however, it does require
some advanced VBA to integrate into your access database.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Array of System.Timers.timer - Assigning an object to timer Gina_Marano Microsoft C# .NET 2 8th Mar 2007 12:51 AM
System.Threading.Timer - How to know when to dispose timer reference? Bruce Microsoft C# .NET 0 22nd Feb 2007 08:17 AM
How to pause the timer created from System.Threading.Timer class =?Utf-8?B?RGhydXZlc2ggQnJhaG1iaGF0dA==?= Microsoft Dot NET Framework 4 29th Mar 2006 12:05 PM
I want to add the start timer and stop timer controls to a custom =?Utf-8?B?R3JlZ1c=?= Microsoft Outlook Form Programming 3 12th Dec 2005 02:16 PM
System.Timers.Timer bug : timer fires immediately/continously felix Microsoft Dot NET Framework 2 25th Apr 2005 06:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:00 AM.