Store Database Date Timelines in Registry

jaikaoliver

Member
Local time
Today, 13:35
Joined
Nov 18, 2019
Messages
38
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
 
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
 
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.
 
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
 
maybe something like this.
note the file was downloaded in this site, but unfortunately i cannot recall the thread.
 

Attachments

Users who are viewing this thread

Back
Top Bottom