View Single Post
  #2  
Old January 20th, 2010, 03:05 PM posted to microsoft.public.powerpoint
David Marcovitz
external usenet poster
 
Posts: 647
Default Available to use

This can be done in a number of ways. The simplest thing is to use an
InputBox:

myPassword = InputBox("Type the instructor password.")
If myPassword = "LetMeIn" Then
do something here such as GotoSlide 7
Else
do something else such as MsgBox "Wrong password"
End If

Now, the question is what do you do in the "do somethings" above. You will
need to keep track of what the instructor has done so you'll need to have
the instructor presentation keep track of something. This is really easy if
the presentation is running continuously (just use a variable Dim
quizAvailable As Boolean), but if the presentation is going to be shut down,
you'll have to do something else. If you want to store the information in
the presentation, you'll have to save the presentation
(ActivePresenation.Save). You could do this by hiding and showing buttons.
One button takes you to the quiz, the other pops up a MsgBox saying the quiz
is unavailable. If the instructor makes the quiz available hide one button
and show the other and save. You could do this with a tag and then you would
use an If statement to check the tag. Were you the one working with external
databases? If so, you could store the information about the availability of
the quiz in the external database. Lots of options.

--David

On 1/20/10 8:30 AM, in article
,
"Nickooo87" wrote:

Hello,

Im trying to create a quiz system that allows users to log in and take
a quiz. However there are two users of the system, lecturers and
students. What I need help with is I want to make a page on my slide
to allow a lecturer to make content avaiable. For instance

If the lecturer logs in they are taken to a page with two buttons on
it saying log out or make slides avaiable.

Then if a student logs in, depending if the presentation is avaiable
they are taken to the quiz, if it is not avaiable a message pops up
and telling them it is unvaiable and they are taken to the login
screen.

Im thinking that i need some sort of button to update a textbox with a
value and if that textbox has the value in then it can be made
available but im ensure on how to do this?

Can anybody help with this? sorry the above is a bit confusing.

Thanks

Nick


--
David M. Marcovitz
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/
Microsoft PowerPoint MVP
Associate Professor, Loyola University Maryland