Sep 12, 2003 #1 MrM121 Programmer Joined Aug 21, 2003 Messages 83 Location 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 Joined Sep 3, 2002 Messages 126 Location 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 Joined Aug 21, 2003 Messages 83 Location 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 Joined Jun 19, 2000 Messages 86 Location 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 #5 MacCaillean Technical User Joined Sep 3, 2002 Messages 126 Location GB Clayton's got it ... Upvote 0 Downvote
Sep 12, 2003 Thread starter #6 MrM121 Programmer Joined Aug 21, 2003 Messages 83 Location GB Thank you very Clayton, I owe you a pint! Nick Upvote 0 Downvote
Sep 12, 2003 #7 cpaige Programmer Joined Jun 19, 2000 Messages 86 Location 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 Joined Aug 21, 2003 Messages 83 Location 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