Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

password

Status
Not open for further replies.

simanot

Programmer
Aug 29, 2002
10
US
I write this code down blow to disable my form from load on certain date on the month and is working very fine.
I would like to know how random password work. I want instead of chaging the date every month. use password I give it to the user let the application working for the next month and etc.

Private Sub Form_Load()
If OrderDate >= #10/20/2002# Then
MsgBox "This Program Expired, " & vbCrLf & "Please Call (000)000-0000.", vbExclamation, "MC-12"
DoCmd.Quit acQuitPrompt
End If

End Sub
 

I think you are asking for far too much trouble. As far as random passwords, you can simply generate a list of random numbers and use those for your random password. However, with each password, you have to assign an appropriate date range.

I am assuming what you are doing is renting your software to a user for a period of time. If your user has paid for a block of time, they get the program; if not, the application ends. The idea seems to be ideal, but enforcing it, as you are learning, is anything but easy. One method which works relatively well is to download to your user sites on the first of the month a text file which consists of one record having the first and last day of the month and that months password. Your user program needs to check that the creation or modification date of that text file are the first day of the month and you also have to check that the real date (not the date from the user computer, but a connected date) is within that date range. Sounds easy. It can be done, but you will work hard doing it.

Good luck.
Robert Berman
Data Base consultant
Vulcan Software Services
thornmastr@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top