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!

Random Password generator

Status
Not open for further replies.
Jun 4, 2003
18
GB
is it possible to create a randow password generator into a form in Access?

also, is there a way of:
entering a Username in one form, and that being the automatic default for a different username in another form?

thanks,
CharlotteR
 
1) Depending on what you want in the password - yes.
2) uh?


Vince
 
(1) preferably a mix of characters and numbers. either set it as 2 numbers, 2 small case, 2 higher case, or whatever really ...

(2) ok - will try and explain this more!

a FTP Username is entered in the Domains form. what i want is for that username (whatever has been entered by the user) to then appear in the Email Username once the Email Users form has been opened.

make more sense??

ta
 
hai i have a doubt , is there any way to create a password to view certain details in a form which will be invisible when form is open and once click button it musst ask for a password to view those details .

is there any one to help me out in this case
 
Try this to generate purely alpha passwords.

You can change the UBound and LBound values to use numeric and other ascii values in the password.

Public Function GenPWord(ByVal intNoOfChars As Integer) As String

Dim AscVal As Integer
Dim strTemp As String
Const intUBound As Integer = 90
Const intLBound As Integer = 65
Dim x As Integer

Randomize

For x = 1 To intNoOfChars
AscVal = Int((intUBound - intLBound + 1) * Rnd + intLBound)
strTemp = strTemp & Chr$(AscVal)
Next x

GenPWord = strTemp

End Function

Please do not feed the trolls.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top