Help me out

Unicon

Registered User.
Local time
Today, 18:03
Joined
Dec 24, 2009
Messages
123
Hi
Is there any code which can deactivate whole database after certain period (like after 1 month / or 6 months).

Please advise.
 
Could you not just put in an if statement to check the date on startup?

if date() >= [enter your ending date value here] then
docmd.quit
end if
 
Thanks Ghudson & Access guy, my concern is do we have any code from which we can corrupt the database after some periods?
Please advise.
 
Why the hell would you want to corrupt a database??????
 
Hi Dcrake I just want to disable my database while I am leaving :p, for that reason only I am asking the same.

Khalid it's not that matter :D

If you guys have something (magic code) please do let me know.
 
Hi Dcrake I just want to disable my database while I am leaving :p, for that reason only I am asking the same.

Khalid it's not that matter :D

If you guys have something (magic code) please do let me know.

I thought it was:) and if it is, then you can fight with you BOSS rather than to corrupt the poor database.
There are too many ways... you can put the time bomb there an any code..:D
 
If you wrote the system in your firms time and used their machine and there software then THEY have the copyrights to it and its IPR. Corrupting the database it going to leave you open to legal action. I would be very wary of going down that route.
 
Hi DCrake,

This is my own database and it will not take me anywhere to legal action please don't take it serious. I am just looking for a help from you guys if you have something. My intention is to know only if there is any code for that one.

Do you have something? :p
 
Hi DCrake,

This is my own database and it will not take me anywhere to legal action please don't take it serious. I am just looking for a help from you guys if you have something. My intention is to know only if there is any code for that one.

Do you have something? :p

Yes!
Just delete your own database. no database no worries ;)
 
If you are leaving on good terms then why not offer to sell it to them. If you are afraid of being prevented from removing the database from the machine(s) then on the on load of the splash screen use the following code

Code:
If Date() >= #01/01/2011# ' or whatever date you want to have
  MsgBox "Your License for this product has expired",vbCritical+VbOkOnly,"Access Denied"
  DoCmd.Quit
End If

Make sure you set the AllowByPassKey to False first.

If you have your own machine at home you could take a copy now without the above as security. So if they want it at a later date you can charge them for activating it.
 
Have you tried using the search function for AllowByPassKey in this forum and in MS
 
Thanks David! I found there so many to change the Properties, but not fully understand :)
 
Hi David,

How to set the AllowByPassKey to False? Please advise.

Totally confused.:confused:
 
Hi David,

I tried somhow like this but didn't work.

Private Sub Form_Load()
If Date() >= #3/29/2010#
MsgBox "Your License for this product has expired", vbCritical + vbOKOnly, "Access Denied"
DoCmd.Quit
End If
End Sub

Please advise.
 
Hi David,

I tried somhow like this but didn't work.

Private Sub Form_Load()
If Date() >= #3/29/2010# then
MsgBox "Your License for this product has expired", vbCritical + vbOKOnly, "Access Denied"
DoCmd.Quit
End If
End Sub

Please advise.

You have to wait for towmorrow, BTW today is 3/28/2010 also IF Then is missing in your code.:p
 
Yes Khalid now its working as I missed out "then" :D

Thank you guys for your help as always.

Appreciated.
 

Users who are viewing this thread

Back
Top Bottom