Sep 12, 2003 #1 MrM121 Programmer Aug 21, 2003 83 GB Hi, can anyone please tell me the code to create 3 random letters, I can do numbers but I'm not sure about letters. Thanks, Nick
Hi, can anyone please tell me the code to create 3 random letters, I can do numbers but I'm not sure about letters. Thanks, Nick
Sep 12, 2003 #2 MacCaillean Technical User Sep 3, 2002 126 GB Hi MrM121 Generate a random number (between 97 and 122 for lower case letters, for example) and then use the Code: Chr function to return the lower case letter that corresponds with your number. Regards Mac Upvote 0 Downvote
Hi MrM121 Generate a random number (between 97 and 122 for lower case letters, for example) and then use the Code: Chr function to return the lower case letter that corresponds with your number. Regards Mac
Sep 12, 2003 Thread starter #3 MrM121 Programmer Aug 21, 2003 83 GB ok, I get you, but how do you generate the random numbers between 97 and 122? Thanks for you help Upvote 0 Downvote
Sep 12, 2003 1 #4 cpaige Programmer Jun 19, 2000 86 CA Here: '122-97=25 c = chr(CInt(rnd() * 25) + 97) That should do it Clayton T. Paige claytonpaige@yahoo.ca Programmer Extraordinaire ======================================================== "Who is General Failure? and Why is he reading my disk drive?" Upvote 0 Downvote
Here: '122-97=25 c = chr(CInt(rnd() * 25) + 97) That should do it Clayton T. Paige claytonpaige@yahoo.ca Programmer Extraordinaire ======================================================== "Who is General Failure? and Why is he reading my disk drive?"
Sep 12, 2003 Thread starter #6 MrM121 Programmer Aug 21, 2003 83 GB Thank you very Clayton, I owe you a pint! Nick Upvote 0 Downvote
Sep 12, 2003 #7 cpaige Programmer Jun 19, 2000 86 CA No Prob Clayton T. Paige claytonpaige@yahoo.ca Programmer Extraordinaire ======================================================== "Who is General Failure? and Why is he reading my disk drive?" Upvote 0 Downvote
No Prob Clayton T. Paige claytonpaige@yahoo.ca Programmer Extraordinaire ======================================================== "Who is General Failure? and Why is he reading my disk drive?"
Sep 12, 2003 Thread starter #8 MrM121 Programmer Aug 21, 2003 83 GB I don't suppose you know how to search all the fields in the Access hidden tables for a string, and then replace that string with another? Nick Upvote 0 Downvote
I don't suppose you know how to search all the fields in the Access hidden tables for a string, and then replace that string with another? Nick