473,404 Members | 2,137 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,404 software developers and data experts.

Starting a form maximized

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.

I would like the form to start in maximized form (i.e. take up the
whole Access window). If I maximize the form, this isn't
"remembered" next time the database is opened, and I can't see a
setting "start as maxmized".

Can anybody help?

Thank you

Karin
Nov 13 '05 #1
7 49273
In the Load event of the form:
DoCmd.Maximize

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"K Jensen" <k_******@mailblocks.com> wrote in message
news:Pine.GSO.4.44.0510121312120.2863-100000@austen...

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.

I would like the form to start in maximized form (i.e. take up the
whole Access window). If I maximize the form, this isn't
"remembered" next time the database is opened, and I can't see a
setting "start as maxmized".

Can anybody help?

Thank you

Karin

Nov 13 '05 #2
Karin

Create a procedure in the OnOpen property.

Add

DoCmd.Maximize

to the code.

Regards

Jeff Boyce
<Office/Access MVP>

"K Jensen" <k_******@mailblocks.com> wrote in message
news:Pine.GSO.4.44.0510121312120.2863-100000@austen...
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.

I would like the form to start in maximized form (i.e. take up the
whole Access window). If I maximize the form, this isn't
"remembered" next time the database is opened, and I can't see a
setting "start as maxmized".

Can anybody help?

Thank you

Karin


Nov 13 '05 #3
K Jensen wrote:
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.

I would like the form to start in maximized form (i.e. take up the
whole Access window). If I maximize the form, this isn't
"remembered" next time the database is opened, and I can't see a
setting "start as maxmized".


The short answer to this is, in your design view of your form, open the
form properties window (a quick way to do this is to double click on
that little square in the upper left hand corner of the form design view
or click on the same square and press alt-enter). Click on the "Event"
tab. Then click on the "On Activate" property and click the builder
button (the little button with three dots to the right) and choose "Code
Builder". This opens the visual basic part of access. You will see
your cursor is in between something like:

Private Sub Form_Activate()

End Sub

Type in the following between these two lines so that it looks like:

Private Sub Form_Activate()

DoCmd.Maximize

End Sub

And this will do what you want.

HOWEVER, If you have data entry people using this, you may also want to
click on the Tools menu, and select "Startup...". This opens a
screen/window in which you can turn off the "Display database window"
property. This way, users turning your application on, won't have the
option to look at the forms, etc. When you want to get at those items,
hold your shift key down when you start your application.

There are more complicated ways to do this sort of thing to make the
database window totally inaccessible, but the above should do for you
for now, I think.

Also, it appears you have multiple users going into your application.
The best way to avoid problems is to have your application set up so
that your tables are in a separate mdb on the server somewhere and you
have a separate mdb as your application that LINKS to the tables on the
server "back end". You must then have your users put a copy of your
application on their own computers. This is called splitting the mdb
and if you google this on this newsgroup (cdma), you will see enormous
numbers of posts from experienced Access people admonishing posters who
have a single mdb on the server that everyone uses! 8)
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Nov 13 '05 #4
Karin (Allen, & Tim)

Note that there are at least three events (Load, Open, Activate) that could
serve as a launching point for maximizing the form.

I'm curious if there are any "better because" reasons for selecting one over
the others. I'll start -- I picked "Open" because I made the assumption
that the form would be closed between uses. Any others?

Regards

Jeff Boyce
<Office/Access MVP>

"K Jensen" <k_******@mailblocks.com> wrote in message
news:Pine.GSO.4.44.0510121312120.2863-100000@austen...
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.

I would like the form to start in maximized form (i.e. take up the
whole Access window). If I maximize the form, this isn't
"remembered" next time the database is opened, and I can't see a
setting "start as maxmized".

Can anybody help?

Thank you

Karin


Nov 13 '05 #5
Thanks to all those who told me about DoCmd.Maximize
I do work in vba, and so can implement this. I wonder
if it makes any different whether you do this on "load",
"open" or "activate" (the three suggested). I suspect
"activate" is the most... erm... powerful.

I was a bit grandiose talking about "data enterers".
There is only one, and I make sure I don't use the db
on the days she is in.

Karin

Nov 13 '05 #6
You probably realise that Activate happens each time the form takes focus,
so it would (potentially) occur more often than just when originally loading
the form.

In my thinking, Open is a bit early (the window has not been created yet),
so Load would be my preference even though Open works fine.

It might be fun to investigate whether the form's events are triggered in a
different order if the form is forced to show or maximize in Form_Open.
According to the Access help file, it should be Open ? Load ? Resize ?
Activate ? Current, but there are cases where the declared order is not
followed, or Current occurs more than once.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Jeff Boyce" <Je**********@msn.com-DISCARD_HYPHEN_TO_END> wrote in message
news:eq**************@tk2msftngp13.phx.gbl...
Karin (Allen, & Tim)

Note that there are at least three events (Load, Open, Activate) that
could
serve as a launching point for maximizing the form.

I'm curious if there are any "better because" reasons for selecting one
over
the others. I'll start -- I picked "Open" because I made the assumption
that the form would be closed between uses. Any others?

Regards

Jeff Boyce
<Office/Access MVP>

"K Jensen" <k_******@mailblocks.com> wrote in message
news:Pine.GSO.4.44.0510121312120.2863-100000@austen...
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.

I would like the form to start in maximized form (i.e. take up the
whole Access window). If I maximize the form, this isn't
"remembered" next time the database is opened, and I can't see a
setting "start as maxmized".

Can anybody help?

Thank you

Karin

Nov 13 '05 #7
K Jensen wrote:
Thanks to all those who told me about DoCmd.Maximize
I do work in vba, and so can implement this. I wonder
if it makes any different whether you do this on "load",
"open" or "activate" (the three suggested). I suspect
"activate" is the most... erm... powerful.


I usually do this in the on activate because if the form is to be used
in conjunction with other forms (that may not be maximized), then each
time you go back to the form, it maximizes. This may or may not be
desirable, depending on how your app works.

It really depends on what behaviour you want from that form.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Nov 13 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: liu | last post by:
i have 1 mdi parent form as frmMDI and 3 mdi child form as frmMain, frmChild1, frmChild2 the frmMain form is the main form for my child mdi, i want to make it maximxize and cant be resize or...
1
by: ssb | last post by:
Hello, One form in my application is the MAIN form. It is set up as "startup" form. However, I need to do the following: (1) When I double click MDE file to launch my project, the MAIN form...
5
by: Tim Frawley | last post by:
When I set the Size property on the VB.NET form properties pane to a size of 800, 1200 the 1200 always resets back to 1036? Why is that? When I open a child form in the MDI parent the only way...
4
by: kaosyeti | last post by:
what's the best way to get a form to always open at a specific size. i've sized and saved the forms, changed the borders and had popup on and off all over but can't seem to get it to stay one way...
3
by: jerry.ranch | last post by:
Hi I'm trying to figure out how to center forms on a page I have a form built with some tabbed pages, and I'm playing with the form properties, but it always displays top and left and not centered...
1
by: 1388-2/HB | last post by:
For vb2005. At design time I set the main form's WindoState to Maximized and I disabled the Maximize box. The user can Minimize the application only. When the program launches, the form is...
14
by: Galen Somerville | last post by:
My current screen resolution is set to 1024 x 768. My form size always comes up as 1032 x 748. I have tried the help sample ' Retrieve the working rectangle from the Screen class ' using the...
0
by: Miro | last post by:
Something I have run into using VB Express 2005 with mdi forms. I have not been able to re-create this but I'll let out the information on how I came about fixing this. As it cost me about 4...
1
by: Marc the Demi-Programmer | last post by:
I am overriding WncProc to make sure my form's location stays within specified parameters. Basically, it has to stay at the top of the screen and not be off to either of the sides. All that works...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.