Consulting

Page 1 of 2 1 2 LastLast
Results 1 to 20 of 31

Thread: Solved: Make Splash Screen enabled longer?

  1. #1
    VBAX Regular
    Joined
    May 2005
    Posts
    19
    Location

    Solved: Make Splash Screen enabled longer?

    I've noticed that the Access DB program splash screen processes so quickly that you cannot grasp what appears on the image . However, my security software program has a splash screen that stays on almost too long. I've researched a couple of VBA books that tell me HOW to make a splash screen, but none seem to tell you anything about adjusting the amount of time that it is displayed.

    Can anyone give us a splash screen time setting lesson?

  2. #2
    VBAX Expert xCav8r's Avatar
    Joined
    May 2005
    Location
    Minneapolis, MN, USA
    Posts
    912
    Location
    Use the timer function.

  3. #3
    VBAX Regular
    Joined
    May 2005
    Posts
    19
    Location
    ok - but where do you need to put the timer function? You would want the splash screen to show up when Access is "double clicked", so do you need to make a form in the start up window? Or is there a way to actually adjust the code on the splash screen itself?

  4. #4
    VBAX Regular
    Joined
    May 2005
    Posts
    19
    Location
    I'm thinking that I have to make something a little "untraditional". There are startup properties in ACCESS where I can define what form I want opened at startup. If I insert my splash screen (bmp file) as an image on a form and call it "splash form", maybe I could write code under "form load" that uses the timer function, closes this form, and opens my switchboard form.

    Do you think that might work?
    Last edited by skaseman; 06-01-2005 at 12:01 PM. Reason: mispelled word

  5. #5
    VBAX Expert xCav8r's Avatar
    Joined
    May 2005
    Location
    Minneapolis, MN, USA
    Posts
    912
    Location
    Yup, that'll work.

  6. #6
    VBAX Regular
    Joined
    May 2005
    Posts
    19
    Location
    I think I've got it now. I'll consider this case "solved". But, if I have trouble...I'll be back! You know, it's important to give yourself credit if you do a good job creating software. I'm a firm believer in "free advertising"; that's why this splash screen is so important to me.

  7. #7
    VBAX Expert xCav8r's Avatar
    Joined
    May 2005
    Location
    Minneapolis, MN, USA
    Posts
    912
    Location
    Alright, let's see the splash screen.

  8. #8
    VBAX Regular
    Joined
    May 2005
    Posts
    19
    Location
    Problem!!! Problem!!!!

    I set up the startup properties to open the form "SplashScreen". Then I run a 4 sec. pause procedure. What seems to be happening is that the pause procedure comes before opening the form.

    So, I tried running the pause procedure in the "open form" code for the form "SplashScreen". After the pause procedure, I have a message box to indicate that the pause procedure has finished. This message box appears before the Splash Screen opens. I'm very confused!!!!!!

  9. #9
    VBAX Expert xCav8r's Avatar
    Joined
    May 2005
    Location
    Minneapolis, MN, USA
    Posts
    912
    Location
    Sorry, my fault for not having been clearer. I should have said use the timer event with a timer interval. Example:

    [VBA]
    Private Sub Form_Timer()
    DoCmd.Close
    DoCmd.OpenForm "frmSwitchboard"
    End Sub
    [/VBA]

    The interval is set up on the event tab of the form properties dialog box.

  10. #10
    VBAX Regular
    Joined
    May 2005
    Posts
    19
    Location
    Oh! I'll give it a try during my "morning break" at work. I'm still indecisive over which event the interval needs to go on. I'm also wondering about where the above mentioned code is called. I'm thinking that I need to call the interval event "on open" and then the last line of the code would be to run the "Form_Timer" procedure...is that what you're instructing me to do?

  11. #11
    VBAX Expert xCav8r's Avatar
    Joined
    May 2005
    Location
    Minneapolis, MN, USA
    Posts
    912
    Location
    Open up the properties dialog box for the splash form. Go to the events tab. Look for "On Timer" and "Timer Interval". Create your event procedure from here. You won't need to do anything else. It will automatically run the On Timer event when the form opens.

  12. #12
    VBAX Regular
    Joined
    May 2005
    Posts
    19
    Location
    Here's where the frustration becomes apparent, huh? From what I've read about this timer interval is that the process would then keep running every "time intervals" specified. We only want this to occur 1 time or when the form is opened.

  13. #13
    VBAX Regular
    Joined
    May 2005
    Posts
    19
    Location
    PS, Will this time interval run just one time, every time the form is opened?

  14. #14
    VBAX Regular
    Joined
    May 2005
    Posts
    19
    Location
    I sure like to post alot, don't I?

    Thank you very much! The clouds have lifted and my splash screen shines through them! The answer to the PS is yes! I got it (I don't know how much more obvious you could have been, but I was a little bit worried about using those events; on timer and time interval.) I guess in the programming world, sometimes you just have to do it to see how it works!

  15. #15
    VBAX Expert xCav8r's Avatar
    Joined
    May 2005
    Location
    Minneapolis, MN, USA
    Posts
    912
    Location
    If the procedure closes the form, then the timer stops. So, yes, it will only run one time.

  16. #16
    VBAX Tutor GaryB's Avatar
    Joined
    Jun 2004
    Location
    Stockton, California
    Posts
    270
    Location
    Hi,

    Just curious,

    wouldn't this work using the timer interval in properties "all" and then creating an event in "on close" to open the next form. And then set the splashscreen form as the form to open in Tools/startup?

    Gary

  17. #17
    VBAX Regular
    Joined
    May 2005
    Posts
    19
    Location
    Hmmm...good point. I'll try it out over the week end. It's always great to learn new ways to do something! Thanks!

  18. #18
    VBAX Expert xCav8r's Avatar
    Joined
    May 2005
    Location
    Minneapolis, MN, USA
    Posts
    912
    Location
    Quote Originally Posted by GaryB
    wouldn't this work using the timer interval in properties "all" and then creating an event in "on close" to open the next form. And then set the splashscreen form as the form to open in Tools/startup?
    I could be mistaken, but I think you mean by "using the timer interval in properties 'all'" to say "on the event tab of the properties for the form that wil be the splash screen", ie., the window you get when the form is selected and you hit ALT+ENTER. If this is the case, this is exactly what I had meant for skaseman to do when I posted the Form_Timer snippet above: startup form = splash whose timer procedure opens the switchboard when the splash screen closes.

    You could, of course, make the form_timer procedure call the form_close procedure in which you could place code to open the switchboard, but it's difficult for me to see an advantage to that in cases where the splash screen is displayed only when the application is opened. In other circumstances, however, I grant it could be useful.

  19. #19
    VBAX Tutor GaryB's Avatar
    Joined
    Jun 2004
    Location
    Stockton, California
    Posts
    270
    Location
    Pretty much the same thing.. It's just all sitting there in the properties menu of the form and seemed a simple way to go about it. The only other thing that has to be done is to add a statement at "on timer" that closes the splash screen. It's a basic proceedure I have been using sucessfully that seems to work smoothly. It opens my startup screen for a predetermined amount of time, closes it and opens the next form and/or switchboard.

    Gary

  20. #20
    VBAX Expert xCav8r's Avatar
    Joined
    May 2005
    Location
    Minneapolis, MN, USA
    Posts
    912
    Location
    Quote Originally Posted by xCav8r
    Sorry, my fault for not having been clearer. I should have said use the timer event with a timer interval. Example:

    [VBA]
    Private Sub Form_Timer()
    DoCmd.Close
    DoCmd.OpenForm "frmSwitchboard"
    End Sub
    [/VBA]

    The interval is set up on the event tab of the form properties dialog box.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •