473,796 Members | 2,625 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5523
On 16 May 2006 20:48:11 -0700, "D" <ws******@these agulls.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(Cance l 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******@these agulls.com> wrote in message
news:11******** **************@ i40g2000cwc.goo glegroups.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
4517
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 the session_start function ? I know the cookie expires after the session ends, but when I look at my HTTP headers, the cookie's expiration date created by the session is set to 19
3
22166
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 sure if this requires a Macro, event procedure, etc. I have a field that gives the expiration date so I could use a formula that calculates 30 days out, or I also have a field that calculates the number of days to expiration. I'm not sure exactly...
7
3947
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 the insert into the second table section: ' Copy LOB entries now. fails on unique index constraint (understandable because it has the orig rate_id). The strange thing is that it works fine for new records that have beend added and then...
0
1557
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 = ActiveWorkbook.Permission.Add( _ "user@domain.com", _ msoPermissionRead + msoPermissionEdit, #12/31/2005#) ------>set
3
9269
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 one particular expiry date could have multiple products I am thinking of two approaches not knowing which one to go for. First design is of one product having many expiry dates (a one to many
2
5095
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 create a persitant cookie, we have to put a expiration date, otherwise, it will be a session cookie. So here our code :
2
5293
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 sure that the extensions for .asmx file etc are in place. I am getting http 404 when I give the url for the asmx file. the http error code is wrong because I am dead sure that the file is there. could you please let me know what else needs to be...
3
3443
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 current date and time expressed in minutes? Once I have this number I can add the number of minutes purchased to the current date/time to get the expiration date.
2
1322
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
10239
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10190
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10019
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9057
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7555
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6796
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5447
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4122
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2928
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.