Random Opening Forms (1 Viewer)

Brian900

Registered User.
Local time
Today, 19:58
Joined
Oct 10, 2002
Messages
51
I will have 4 different forms based upon 4 different tables. What I would like to do is create an event or create an autoexec macro to randomly select one of the 4 forms to open (Form1, Form2, Form3 and Form4) each time the db is opened. Any thoughts on how to accomplish this?
 

ghudson

Registered User.
Local time
Today, 14:58
Joined
Jun 8, 2002
Messages
6,195
Why?

The Rnd function will create a random number. You will then need to assign a value to your forms and open the corresponding form.

HTH
 

Brian900

Registered User.
Local time
Today, 19:58
Joined
Oct 10, 2002
Messages
51
I have four different test for people to take because someone could just record the answers and give them to the next person. I would like to combat that by randomly opening a different test each time. Thanks.
 
R

Rich

Guest
I'd have thought that one table with questions would suffice, then just randomly select the questions
 

Brian900

Registered User.
Local time
Today, 19:58
Joined
Oct 10, 2002
Messages
51
That would work also. I just need to know how to use it. Thanks.
 

Brian900

Registered User.
Local time
Today, 19:58
Joined
Oct 10, 2002
Messages
51
Mile-O-Phile,

This is pretty cool! Do you mind if I use and modify the code to complete my project? I'll drop you a comment within.

Thanks, Brian.:)
 

Mile-O

Back once again...
Local time
Today, 19:58
Joined
Dec 10, 2002
Messages
11,316
No, probs - that's what it's there for.
 

Brian900

Registered User.
Local time
Today, 19:58
Joined
Oct 10, 2002
Messages
51
Thanks. I'll let you know how it turns out. Brian:)
 

Users who are viewing this thread

Top Bottom