Random

  • Thread starter Thread starter Brian
  • Start date Start date
B

Brian

hello all we have employee number that are actually text but what I need
to do is create a random selection of employees based on their EMPID.

so if I put in the text box 3 this I want

EMPID Name
1000 Jon Smith
1145 Jane Doe
1467 Bob Neil

To fill another table or record set so that they show up on a report
 
Create another column. Make it an autonumber. Then you can use the Rnd()
function against this column.
 
Hi,


If EMPID always represent an integer, you can use it too:


SELECT TOP 3 *
FROM myTable
ORDER BY RND(INT(empid) )



Hoping it may help,
Vanderghast, Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Need Help... 4
Confusing Type Mismatch 2
Record Review Process 2
UNION query 11
Setting form field = another field on same form 3
intersecting times 3
Aggregate function error 2
Error Message 2

Back
Top