Access to pull random records

G

Guest

I have access and have a several tables with about 4000 records each. I want
to pull records randomly from each database and create another table with the
information.

For instance I want to pull 200 records randomly from each table and make
another table with those records.

Is it possible to do this and if so how?

Thanks
 
G

Guest

Thanks Douglas:

I duuno if you can help me but I am not sure exactly how to work that code.
I placed the code inside a module and saved it. But then I am not sure of
what to do.

It says:
select top 100 mytable.*from mytable

I assume this means create a query and select the table I want to work on
and then click on the * to select all fields.

But then
where randomizer() = 0
order by rnd(isnull(mytable.question) * 0 + 1)

Where do I put those statements?

Any help appreciated.
 
D

Douglas J. Steele

Easiest way is to select the SQL View from the View menu. That'll show the
actual SQL that's being generated for your query. You can then type that in.
 
Ô

ôë

Douglas J. Steele said:
Easiest way is to select the SQL View from the View menu. That'll show the
actual SQL that's being generated for your query. You can then type that in.

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)



each.
 
Ô

ôë

Douglas J. Steele said:
Easiest way is to select the SQL View from the View menu. That'll show the
actual SQL that's being generated for your query. You can then type that in.

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)



each.
 

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

Top