Problem with the window sizes on forms?

Leffe78

Registered User.
Local time
Today, 05:58
Joined
Oct 15, 2004
Messages
19
After much work and help from a lot of competent ppl on this forum i have finally been able to get my dB together. Now i have a problem though which i can't solve.
Problem is this:
I open a form, lets call it MENU. From this you open a second form called NewEmployee.
In this new form you insert new data about the employee(s) and then insert them in the dB.
So far so good, but when you do a print about the employee, the procedure is this:
A special form is opened (PrintOutForm), its fields are filled with data from the NewEmployee, it is printed and then closed.
Problem with this is that the MENU form is now not-maximized :) Which it was when you opened the dB.

Is this something any of you guys have encountered before?
 
go to the On Activate event of your form and put:

DoCmd.Maximize
 
I guess i wasn't clear about this in my text, but thanks maxmangion, that solves the problem. I have used it before. :)

I don't like this soloution though, it is not very elegant to simply bypass it by adding more special-case solutions..
I guess my question should have been "I dont understand why this happen" instead of "i haven't managed to solve this problem". :o
But it is weird that a *open - work - close* on a form alters the size of another, already opened, form.
 
You could also try a DoCmd.Restore in the forms OnOpen event.
 

Users who are viewing this thread

Back
Top Bottom