C
Chris Nebinger
This one will return a case sensitive password:
Function RandomPassword()
Dim intRandom As Integer
Dim strPassword As String
Randomize Timer
Do Until Len(strPassword) = 8
intRandom = Int(Rnd(1) * 75) + 47
Select Case intRandom
Case 48 To 57, 65 To 90, 97 To 122
strPassword = strPassword & Chr$(intRandom)
End Select
Loop
RandomPassword = strPassword
End Function
Chris Nebinger
this first in an update query to assign approximately 5500
passwords. Then, I will make a button that has this code
in it so that when the button is clicked, the password is
generated.
Function RandomPassword()
Dim intRandom As Integer
Dim strPassword As String
Randomize Timer
Do Until Len(strPassword) = 8
intRandom = Int(Rnd(1) * 75) + 47
Select Case intRandom
Case 48 To 57, 65 To 90, 97 To 122
strPassword = strPassword & Chr$(intRandom)
End Select
Loop
RandomPassword = strPassword
End Function
Chris Nebinger
length, combination of numbers and letters? I need to do-----Original Message-----
How can i generate random passwords, 8 characters in
this first in an update query to assign approximately 5500
passwords. Then, I will make a button that has this code
in it so that when the button is clicked, the password is
generated.