I have a table with 1 Field. That field is made up of a bunch of 10 digit numbers. There are a ton of numbers that begin with the same 7 digits. I want pull back a random number for each unique first 7 digits. Example:
Field 1
--------
1234567000
1234567111
1234567222
1234567NNN
7654321000
7654321111
7654321222
7654321NNN
NNNNNNNXXX
I'm trying to write a query that will randomly give me one digit that begins with the 1234567, one that begins with the 7654321, one that begins with the NNNNNNN, etc.
I used =left([fiedl1], 7), and did a count on it to see how many unique first 7 numbers there are, and I know I should use a Rnd() funcition somewhere, but after that, I'm stuck.
Any suggestions?
TIA
Field 1
--------
1234567000
1234567111
1234567222
1234567NNN
7654321000
7654321111
7654321222
7654321NNN
NNNNNNNXXX
I'm trying to write a query that will randomly give me one digit that begins with the 1234567, one that begins with the 7654321, one that begins with the NNNNNNN, etc.
I used =left([fiedl1], 7), and did a count on it to see how many unique first 7 numbers there are, and I know I should use a Rnd() funcition somewhere, but after that, I'm stuck.
Any suggestions?
TIA