Opening the database the way I want?

aziz rasul

Active member
Local time
Today, 23:06
Joined
Jun 26, 2000
Messages
1,935
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?
 
Have you tried putting the maximize macro in the "on close" event of the splash form?
 
Yes. It only maximises the splash form itself, which is what I don't want.
 
Put the code on the OnUnload event of the splash form.

DoCmd.Maximize
 
Doesn't quite work. It appears to work, but the db window stays the same size.
 
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).]
 
Forgot to set the start up form before the email was sent. The splash form is Form1.
 
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.
 
Send it to jwindon@kde.state.ky.us before 4PM EST. I'd be happy to take a look.
 
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).]
 
I would like to express my sincere thanks to jswindon for helping me to solve this problem.
 

Users who are viewing this thread

Back
Top Bottom