I have a MS access database. In that, one table consists of questions and answers with primary key questionID. I need to retrieve random question from that table using questionID. What keywords or query should I use for this scenario.
相关问题
- Unity - Get Random Color at Spawning
- Importing data from MS Access db to PostgreSQL db
- DoCmd.TransferSpreadsheet is not recognizing works
- How to generate a random number, then display it o
- Is there a way to apply theme on converted access
相关文章
- why 48 bit seed in util Random class?
- Need help generating discrete random numbers from
- COALESCE, IFNULL, or NZ() function that can be use
- CurrentDb.RecordsAffected returns 0. Why?
- Get random records with Doctrine
- Looking for a fast hash-function
- How to embed ms-access forms in C# module?
- Sleep Lib “kernel32” gives 64-bit systems error
To get different random record you can use, which would require a ID field in your table
A negative value passed as parameter to the Rnd-function will deliver the first random value from the generator using this parameter as start value. (A kind of defined randomize). Special thanks to @kobik 's hint from the comments.
This will give you a new set of answers every time, you don't even need to make up a time when you use "NOW" (which will every time be a new time you click this no matter how fast you click), in my opinion the most simple and neat way to solve this in Access.
The following will get a random questionID from your table
MySQL
MS Access