A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

DB Timer/Expirary



 
 
Thread Tools Display Modes
  #1  
Old October 28th, 2008, 08:23 PM posted to microsoft.public.access
Nick T
external usenet poster
 
Posts: 156
Default DB Timer/Expirary

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.
  #2  
Old October 28th, 2008, 08:49 PM posted to microsoft.public.access
Scott Lichtenberg[_2_]
external usenet poster
 
Posts: 37
Default DB Timer/Expirary

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" wrote in message
...
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.


  #3  
Old October 28th, 2008, 09:06 PM posted to microsoft.public.access
Nick T
external usenet poster
 
Posts: 156
Default DB Timer/Expirary

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" wrote in message
...
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.



  #4  
Old October 28th, 2008, 10:35 PM posted to microsoft.public.access
Anthos
external usenet poster
 
Posts: 88
Default DB Timer/Expirary

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.
 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:25 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.