D
Dave J
How do I code a form or application to shut down after 30 day trial?
Dave J said:How do I code a form or application to shut down after 30 day trial?
LightByrd said:Dave J said:How do I code a form or application to shut down after 30 day trial?
Here's another way using the form close event
If either the date is exceeded or more than 20 records entered, it
triggers.
It will delete critical form(s), making the program useless.
autonumberID is the Key value in the main table
choose the critical forms that apply
supply whatever date you wish
Dim strMSG As String
strMSG = "This Demo Has Expired" & vbCrLf & "Please Contact Me to Obtain
the Full Version"
If DCount("[autonumberID]", "a critical form") > 20 Or Date > #9/30/2010#
Then
DoCmd.DeleteObject acForm, "frmCriticalform"
DoCmd.DeleteObject acForm, "frmanothercritical form"
MsgBox strMSG, vbCritical
DoCmd.Quit acQuitSaveAll
End If