I have an Access table where all the non-key fields are null. I need to fill them all in with an integer between 0 and 10 for testing. I can do this column by column, but not row by row as there are about 3000 of them! I have run:
update Table set Field = Round(Rnd()*10)
but this fills the field in with the same random number for each record (I assume it does the random number calculation first and then the update.
Can I do this writing a module and looping through the no of records in the table? If so, how do I get the number of records? It doesn't like 'select count(*)...'
update Table set Field = Round(Rnd()*10)
but this fills the field in with the same random number for each record (I assume it does the random number calculation first and then the update.
Can I do this writing a module and looping through the no of records in the table? If so, how do I get the number of records? It doesn't like 'select count(*)...'