Can Anyone Answer This Please?

crann

Registered User.
Local time
Today, 13:02
Joined
Nov 23, 2002
Messages
160
Its only simple but i can't understand it.

I want to create a splash screen for my database, i have been told to create a from that i want for the splash screen, set it for startup and change the event timer, but when i click on the form, there is no event timer, i don't understand how to rename the form the same as the database.

I have been on the pc all day i think the Rays from the monitor are affecting my brain signals.

But can anyone help me here thanks
 
When you say splash screen, do you mean you want to just pop up a form for a couple of seconds and then have it go away?

If this is the case then, go to Tools -> Startup..
Then choose the form you would like to display at startup (this would be your splash screen).

As for the name, it does not have to be the same name as is given to you .mdb file. Just name it frmSplash, or Spalsh, or something similar.

As for the form timer, go to the Event Tab in the properties window (of the Form Object) and scroll to the very bottom. The Timer Interval Should be defaulted to 0. Set this to 1000. This will run the timer once every second.
Create an invisible, unbound Text Box and name it txtCountDown. Now create a sub procedure in the On Timer Event. This procedure will increment the value in the txtCountDown by 1 each time the timer event fires. Like this...

Code:
Private Sub Form_Timer()
  Me.txtCountDown.Value = Me.txtCountDownValue + 1  'increment once per second
  If txtCountDown.Value = 3 Then
      DoCmd.Close  'Close the form once 3 seconds have passed
      DoCmd.OpenForm  "yourSwithBoardForm"   'Open up your switchboard after the splash closes
  End If

End Sub

Hope this helps..
 
If all you want is a splash screen, then save your splash screen image in the same directory and with the same name as your MDB file.
If want you want is a form to pop up then that's a little different depending on what you want.
 

Users who are viewing this thread

Back
Top Bottom