Store Database Date Timelines in Registry (1 Viewer)

jaikaoliver

Member
Local time
Today, 10:33
Joined
Nov 18, 2019
Messages
37
Hello Good People,
I once came across such a database that could store say date when the database started an will expire then could validate time remaining for the usage of a database
I cant recall the code neither site, can anyone be in know of this

My computer's HDD crashed so lost lots of code
 

Ranman256

Well-known member
Local time
Today, 13:33
Joined
Apr 9, 2015
Messages
4,337
save your expire date:
Call SaveSetting(pvAppName, pvSection, pvKeyName, pvValue)

get back the saved date:
Code:
vDate = GetSetting(pvAppName, pvSection, pvKeyName)
if date() >vDate then
   msgbox "Time Expired"
   docmd.quit
endif
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 13:33
Joined
Feb 19, 2002
Messages
43,361
When you create the registry key, don't use a name that will be too obvious. You don't want someone to accidentally discover how to manipulate the expiration date of your app.
 

jaikaoliver

Member
Local time
Today, 10:33
Joined
Nov 18, 2019
Messages
37
save your expire date:
Call SaveSetting(pvAppName, pvSection, pvKeyName, pvValue)

get back the saved date:
Code:
vDate = GetSetting(pvAppName, pvSection, pvKeyName)
if date() >vDate then
   msgbox "Time Expired"
   docmd.quit
endif
Oook though I wish to have the code to get me into the Registry....I recall several APIs were used....Was quit involving
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 01:33
Joined
May 7, 2009
Messages
19,247
maybe something like this.
note the file was downloaded in this site, but unfortunately i cannot recall the thread.
 

Attachments

  • UnLocker.zip
    55.1 KB · Views: 77

Users who are viewing this thread

Top Bottom