View Full Version : Opening the database the way I want?


aziz rasul
09-06-2001, 07:30 AM
I have a splash screen form that is included in the startup options.

The splash screen opens central to the screen but at a reduced size compared to the whole screen. This bit is OK.

The problem is that when the splash screen times out I want the database window to maximize automatically.

If I create a macro to open the splash screen and then use the maximise action, it maximises the splash screen instead.

Can anyone help?

mboe
10-24-2001, 08:19 AM
Have you tried putting the maximize macro in the "on close" event of the splash form?

aziz rasul
11-02-2001, 03:40 AM
Yes. It only maximises the splash form itself, which is what I don't want.

jwindon
11-02-2001, 03:32 PM
Put the code on the OnUnload event of the splash form.

DoCmd.Maximize

aziz rasul
11-06-2001, 09:31 AM
Doesn't quite work. It appears to work, but the db window stays the same size.

jwindon
11-06-2001, 09:45 AM
That's funny. It works for me.

aziz rasul
11-07-2001, 02:24 AM
Can you email me a working db that does this. I may be able to compare your's with mine and see what the subtle difference is.

There is one difference that I have realised, and that is that the form closes after 3 seconds.

[This message has been edited by aziz rasul (edited 11-07-2001).]

jwindon
11-07-2001, 04:45 AM
OK. I will.

jwindon
11-07-2001, 04:54 AM
Forgot to set the start up form before the email was sent. The splash form is Form1.

aziz rasul
11-08-2001, 06:19 AM
Thanks for your db. Your db works the way that I want it to. However my db is exactly the same in Access 97, but doesn't work. I have tried it in 2000, still the same. Would you mind if I send you the db and you can see why it isn't working. I would be most grateful.

jwindon
11-08-2001, 10:08 AM
Send it to jwindon@kde.state.ky.us before 4PM EST. I'd be happy to take a look.

jwindon
11-10-2001, 03:39 PM
For anyone who was watching the tread for the answer. The problem was that the OnTimer event closed the form. Therefore, the OnUnload code to DoCmd.Maximize would not fire.

Adding the command to the same event solved the problem.

[This message has been edited by jwindon (edited 11-10-2001).]

aziz rasul
11-12-2001, 01:16 AM
I would like to express my sincere thanks to jswindon for helping me to solve this problem.