-----Original Message-----
Sorry I haven't been to clear. Let me tell you what's
going on.
I open up a main form (my "switchboard" but not created
through the switchboard manager. I have "things" I need
to do that the manager won't easily let me do.)
From this form other forms are opened. I am unable to use
use Pop-up or Modal for most of the forms that are called
from here. (I've tried this and just can't get the
results I want.)
The forms opened by the "switchboard" now call other forms
(I am able to make these pop-up). When I return from the
forms called here to the "switchboard", the "switchboard"
is no longer of the correct size.
To answer your questions:
I am not trying to hid the main Access Application "X" and
yes I am already doing this.
The original form ("switchboard") is the only one with the
problem.
Pop-Up is set to No
Modal is set to No
Close Button is set to No
I have gotten rid of all DoCmd.Maximize lines
I wish I could make the forms I call from the Switchboard
Pop-up or Modal, but I can't. (I tried that one)
I've finally decided that what I need is to be able to
disable the form close button programatically just as I
have done to the main Access Application "X". I think
I've tried just about everything else!!!
I'm using Access 97 and there's no option of upgrading.
Thanks for keeping on with this one. I am usually able to
find solutions to problems I encounter. This one is
driving me crazy!!! (not hard to do...)
-----Original Message-----
Ok, let's step back a minute and make sure we are on the same page.
You've kinda given us half of the puzzle pieces through various posts.
So let's summarize:
1. You are not trying to hide the main Access Application "X" correct?
(You may be doing that anyway)
2. You say "original form" so is this the ONLY form with the problem?
3. Go to the Form's properties list for the "original form."
Is this form Pop-Up set to Yes?
Is this form Modal set to Yes?
Is the Close Button Property set to No?
Do you have ANY DoCmd.Maximize statements for this form?
4. Are your other forms set to Pop-Up?
Do you have ANY other forms/reports with a
DoCmd.Maximize
statement?
Here's my guess:
Your original form has the Close Property set to No.
You open another form on top of this one that has a DoCmd.Maximize line.
That second form fills the screen and has a "X" button because it is maximized.
You close that form and return back to the original form.
Now suddenly your original form is maximized and has
a "X" button in the upper right corner.
That's because of how Access treats the window state:
Once maximized - all maximized.
Things to try:
1. Put a DoCmd.Restore command in EVERY form and
report's
Close event.
This will keep each form/report window state the way you'd like it.
2. Experiment with the code link I gave you some more.
If you have your form set to Pop-Up you will see some strange things.
Try setting Pop-Up to No and then use the code.
The form will fill the entire Access Window, but allow
room for the menubars/toolbars.
Also, you will not see an "X" button then.
3. Triple check to make sure you have set the Close
Button property to No on any forms you do not
wish to see it. Remember though that a DoCmd.Maximize
command will just override that.