Remove Resize Button on Menubar

  • Thread starter Thread starter Pierre
  • Start date Start date
P

Pierre

I have read at least 3 other past post that commented on using the code found
a below site to remove the restore button:
http://www.mvps.org/access/api/api0022.htm

My only issue is that I’m a little slow. After reading the past post, I
still have not found where I would place this code. I'm trying to add it to
Module, but I'm not sure if that is the right thing. But if it is, where
would I put the command "MaximizeRestoreForm()" (if that is the right one to
use). Thank you in advance for any and all replies.

NOTE: The information was found on a posted in Forms dated 10/4/2006 and
Forms Coding dated 11/4/2004.
 
Copy everything between Code Start and Code End to a module (not a class
module, nor a module associated with a form or report). Make sure you don't
name the module the same as any of the functions defined in it: try using
something like mdlRestoreForm as the module name.

In the module(s) of the form(s) you're trying to control, use

MaximizeRestoredForm

instead of

DoCmd.Maximize
 
Okay - the placement is complete. And now when i try to place
"MaximizeRestoredForm" in the Form_Open property. I get the following
Compile error.
Ambiguous name detected: MaximizeRestoredForm
 
That implies you already had a function named MaximizeRestoredForm in your
application before you created the module from the code at the website.
You'll have to search for it (using Find in the VB Editor) and rename one of
the two functions.
 
Back
Top