473,387 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

MS Access Date Expiration lockdown function

D
Hello All,

I am getting ready to send out an MDE file to a customer for
evaluation. What I would like to do is put some code on the
switchboard load event that says something like.......

if date() > 05/31/2006 the quit the application.

Bottom line is I dont want people to be able to use the program after
may 31st. So any suggestions are welcome.

May 17 '06 #1
5 5502
On 16 May 2006 20:48:11 -0700, "D" <ws******@theseagulls.com> wrote:

Discussed here many times, so you should be able to google for it
pretty well. Bottom line: it may be better to restrict the number of
records in a significant table. If you insist on a date, you can
write your code in the switchboard's Form_Open event, and then call
DoCmd.Quit.

-Tom.
Hello All,

I am getting ready to send out an MDE file to a customer for
evaluation. What I would like to do is put some code on the
switchboard load event that says something like.......

if date() > 05/31/2006 the quit the application.

Bottom line is I dont want people to be able to use the program after
may 31st. So any suggestions are welcome.


May 17 '06 #2
D
i tried searching....... maybe you could point me in the right
direction?

May 17 '06 #3
Hi.
I am getting ready to send out an MDE file to a customer for
evaluation. What I would like to do is put some code on the
switchboard load event that says something like.......

if date() > 05/31/2006 the quit the application.
The code could be something as simple as the following:

Private Sub Form_Open(Cancel As Integer)

On Error GoTo ErrHandler

If (Date > #5/31/2006#) Then
MsgBox "This demo has expired." & vbCrLf & vbCrLf & _
"Please contact us at www.TheSeagulls.com" & vbCrLf & _
"or at (505) 555-5000 for the latest version.", _
vbInformation + vbOKOnly, "Demo Expired!"
DoCmd.Quit
End If

Exit Sub

ErrHandler:

MsgBox "Error in Form_Open( ) in" & vbCrLf & _
Me.Name & " form." & vbCrLf & vbCrLf & _
"Error #" & Err.Number & vbCrLf & vbCrLf & Err.Description
Err.Clear

End Sub

The downside to this approach is that while it's easy to implement, it's
just as easy to bypass. The demo can be used forever just by resetting the
computer's system date to 31 May '06 before opening the application, or by
holding the <SHIFT> key down while opening the database so that the startup
form doesn't open or the AutoExec macro doesn't run. There are far more
clever ways to prevent software piracy than this approach.
Bottom line is I dont want people to be able to use the program after
may 31st. So any suggestions are welcome.
I hate to dampen your enthusiasm, but someone had better tell you.
Compiling the database application into an MDE file protects only the VBA
code from prying eyes (and there are services available that, for a price,
can extract even the code). The tables, relationships, queries, forms,
reports, and macros can be either imported or extracted into a new MDB file.

So the only thing that you might have an opportunity to protect with this
MDE file is the VBA code, and frankly, the code you've asked for is very,
very simple code -- meaning that if you're asking for help on this, then are
you sure that there's any code in your database applicaton worth
protecting -- and annoying your potential customer enough to avoid your
short-term demos in favor of a more experienced Access developer's work?

HTH.
Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
http://www.Access.QBuilt.com/html/ex...ributors2.html for contact
info.
"D" <ws******@theseagulls.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com... Hello All,

I am getting ready to send out an MDE file to a customer for
evaluation. What I would like to do is put some code on the
switchboard load event that says something like.......

if date() > 05/31/2006 the quit the application.

Bottom line is I dont want people to be able to use the program after
may 31st. So any suggestions are welcome.

May 17 '06 #4
D wrote:
i tried searching....... maybe you could point me in the right
direction?

One of the big issues with time-based demos is with users modifying the PC clock to extend
or work-around the demo time limit.

Less of an issues now adays where organized installations manage the PC clock but a home
user can still set their clock.

You'd want to track the latest date that your software was used and ensure that the
current date of the PC is always within the number of days of that date that your demo
period allows.

And you'll need to store these values in a location that users won't easily find or you
could encrypt it the values to prevent tampering.

--
'---------------
'John Mishefske
'---------------
May 18 '06 #5
D
Awesome~!!!! Thanks Guys works like a charm.........

I don't need anything too complex........ I just need to keep honest
people honest. If microsoft cant stop piract I sure as heck wont be
able to. Where there is a will there is a way.

May 18 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Christophe Lance | last post by:
Hello, I use PHP session cookie to store an id number. I know how to set a cookie expiration date using the setcookie function, but how to set an expiration date when the cookie is created by...
3
by: W. Carroll | last post by:
Hi, Here is the problem I am facing. I need to create some sort of message alert that notifies the user upon opening the database that there are records within 30 days of expiration. I'm not...
7
by: peter.morin | last post by:
Issue: I am inserting an Oracle record containing insert trigger via Access 2002 using the code below. The issue is that the sequence from the acSaveRecord is not reflected after the insert so...
0
by: Rock | last post by:
Hi,all: I have find a example to set expiration date of word permission object, but it was using VBA code. Dim objUserPerm As Office.UserPermission Set objUserPerm =...
3
by: hasanainf | last post by:
Hi all, What will be the best database design for an inventory control that uses expiry date for its products. Over a period of time, a particular product will have many expiry date and that...
2
by: Frederic Gignac | last post by:
Hiya all, My buddy and I got a bug with the expiration date of a cookie. When we want to look out the expiration date, the only thing we've got, it's 01/01/0001. As we know, when we want to...
2
by: Praveen | last post by:
Hi All, I have made a webservice in C# and it works fine in my machine. I ran into a crazy problem when I wanted to deploy it in windows 2003 server. I have run "aspnet_regiis.exe -i" to make...
3
by: dave | last post by:
I need to compute an expiration date based on the number of hours, days, or months purchased. The expiration date needs to be expressed in minutes something like '1260481600'. How can I get the...
2
by: Steve Covert | last post by:
Does anybody have any clever technique to implement an expiration date in a WinForms app, such that it could outsmart any user who tries to change the system clock to avoid expiration?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.