Hi there,
What is the best way around generating a query to generate the contents of a table listed by id in random order?
Using the Int((n * Rnd) + 1) example will not be accurate if an autonumber id row has been previously deleted. As the number generated may point to a autonumid that doesn't exist and hence the row can't be referenced.
What I thought had to be done was an initial count of all record rows in the table and then a new query needs to generate a new dynamic autonumber id (on the fly as a seperate column) that can be used as a reference point for the row (does that make sense)?
Or am I totally missing something? and there is a far easy way to do all this.
Secondly (if someone wants to be nice)... what is the best way that I can then access that row via a form? (ie via recordset, what method/action etc)
Thanks heaps
What is the best way around generating a query to generate the contents of a table listed by id in random order?
Using the Int((n * Rnd) + 1) example will not be accurate if an autonumber id row has been previously deleted. As the number generated may point to a autonumid that doesn't exist and hence the row can't be referenced.
What I thought had to be done was an initial count of all record rows in the table and then a new query needs to generate a new dynamic autonumber id (on the fly as a seperate column) that can be used as a reference point for the row (does that make sense)?
Or am I totally missing something? and there is a far easy way to do all this.
Secondly (if someone wants to be nice)... what is the best way that I can then access that row via a form? (ie via recordset, what method/action etc)
Thanks heaps