473,385 Members | 1,325 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Stop a form from maximizing

9
How do you stop a form from maximizing on open. When I close a report, I want "frmMAIN" to open at it's normal non-maximized size. But, it keeps opening fully maximized. Here is my code.

Expand|Select|Wrap|Line Numbers
  1. Private Sub Report_Close()
  2. On Error GoTo Err_Report_Close
  3.  
  4. DoCmd.OpenForm "frmMAIN"
  5. Exit_Report_Close:
  6. Exit Sub
  7.  
  8. Err_Report_Close:
  9. MsgBox (err.Number & ": " & err.Description)
  10. Resume Exit_Report_Close
  11. End Sub
Thanks in advance for the help.
Jul 7 '07 #1
2 3536
Quiver
9
Addendum:

I have the report maximizing onOpen. If I don't do this the form does not maximize. However, I really want the report to maximize onOpen.
Jul 7 '07 #2
Quiver
9
Figured it out! I put a DoCmd.Minimize command in the OnClose event of the report before opening frmMAIN.

Thanks anyway.
Jul 7 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Kevin Robinson | last post by:
Is there any way of increasing the height of a VB form and of using a scroll bar to access the data outside of the normal window. My problem is that I need at least 40 rows on a form each row...
7
by: K Jensen | last post by:
Hi I have a form which is displayed at start up as the default. I am the only person who accesses the underlying tables and queries; data enterers just need the form. I am running Access 2000....
4
by: Duncan | last post by:
Hi I'm learning c# 2.0 as I feel I need to be able to switch between vb & c#, I'm just starting with a few simple examples and I've come across a problem. I've got two forms ones an MDI parent &...
1
by: Brett Romero | last post by:
Let's say I have a panel docked top and a datagrid docked middle. In the panel are three columns and three rows of combo boxes and one search button. Search results are displayed in the grid. ...
5
by: Mrozu | last post by:
Hi When I maximize a form in VB.Net 2003 the bottom of the form gets hidden by the start bar (so my status bar is invisible). How can I get my app to maximize to the usable screen area above...
6
by: michelle | last post by:
Hello everyone, We are trying to protect maximizing of a .net form if we double click on the top blue area. We tried a lot of form events, for example: DoubleClick / Click, but form is...
13
by: teric2 | last post by:
Hi Everyone! I have a form that opens from a another form set as a dialog box via a command button. I have tried about everything I can think of to make this form maximize when it opens. I've used...
6
by: Doc John | last post by:
Assuming I have several child Forms open (not maximized) in my MDI Form, when I maximize any of them and then close it, all my other Forms automatically maximize. How come? Is there an easy...
2
by: solar | last post by:
Even though i put the command DoCmd.Maximize in the OnOpen event of the form, the form does not take the whole space of the screen, but is somewhat shortened. How can i make my form spread over the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.