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

Form sized to design window even though AutoResize = yes (Access 2003)

This is driving me NUTZ.

All of my forms are keeping the size of the window I design them in, even
when I have the AutoResize option set to Yes.
The actual form (grey, gridded area) is the size I want it, but the window
it opens in is NOT this size.

This applies if I open the form directly, even if I then choose "Window,
Size to fit form".
I know the form stays the size of the design window when I switch to view
mode from design mode, but I can't get the form to resize correctly
anywhere!

I've tried adding:
With DoCmd
.Restore
.RunCommand acCmdSizeToFitForm
End With
to the Form_Open event, with no luck either.

I've tried changing the CanGrow/CanShrink options of the
Header/Detail/Footer sections...still no change.

Any suggestions?
Jan 25 '06 #1
11 9831
Chippy wrote:
This is driving me NUTZ.

All of my forms are keeping the size of the window I design them in, even
when I have the AutoResize option set to Yes.
The actual form (grey, gridded area) is the size I want it, but the window
it opens in is NOT this size.

This applies if I open the form directly, even if I then choose "Window,
Size to fit form".
I know the form stays the size of the design window when I switch to view
mode from design mode, but I can't get the form to resize correctly
anywhere!

I've tried adding:
With DoCmd
.Restore
.RunCommand acCmdSizeToFitForm
End With
to the Form_Open event, with no luck either.

I've tried changing the CanGrow/CanShrink options of the
Header/Detail/Footer sections...still no change.

Any suggestions?

Do you have the form set to Sizeable? (see BorderStyle in form's Format
settings)

Do you have the form set to modal or dialog? Check the Other tab for
the form's properties.
Jan 25 '06 #2
Border Style = Sizeable
PopUp = No
Modal = No

What should they be set to?
I want to use these forms as subforms on a tab control so I want to make
sure they are all sized correctly.

thanks for your help

[BTW: Surely MS would realise that by default most people would want the
form to be the size of the form and not the window you design it on?]
Jan 25 '06 #3
I suggest:

a) posting all your form module so that we might consider the problem
with as much information as possible;

or

b) trying

Private Sub Form_Load()
DoCmd.RunCommand acCmdSizeToFitForm
End Sub

Private Sub Form_Open(Cancel As Integer)
With Me
..InsideHeight = .Section(acDetail).Height * 20
'me.note is the "righthand-most" control on the form
..InsideWidth = Me.Note.Left + Me.Note.Width + 64
End With
End Sub

with modifications appropriate to your wishes and the form's design.
The event in which these codes are run does seem to be quite important
not surprsingly as it's difficult to size the from window before it
exists; I have never had consistent success with
With DoCmd
.Restore
.RunCommand acCmdSizeToFitForm
End With
in the Form_Open Event, but I have in the Form_Load Event.

Jan 25 '06 #4
Chippy wrote:
Border Style = Sizeable
PopUp = No
Modal = No

What should they be set to?
I want to use these forms as subforms on a tab control so I want to
make sure they are all sized correctly.

thanks for your help

[BTW: Surely MS would realise that by default most people would want
the form to be the size of the form and not the window you design it
on?]


While I agree with you about wanting to figure out what is going on with the
window sizes that will have zero affect on the form when used as a subform.
You will size the subform control to make it contain the form content.
There is no "window size" in that context.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Jan 25 '06 #5
Look at the "Session_Strength" form as an example of one that stays the size
of the window and not the form
Jan 25 '06 #6
Chippy wrote:
Look at the "Session_Strength" form as an example of one that stays
the size of the window and not the form


And just where would we see this form? Have you posted this on a web site
somewhere?

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Jan 25 '06 #7
It's attached in a previous post (through newgroups)
Jan 25 '06 #8
Found my answer by trial and error...

Needed to set the Form, Format, Default View property to Single Form
DOH!
Jan 25 '06 #9
Well, I'm glad MS doesn't have to issue a formal apology to you.

Jan 25 '06 #10
"Chippy" <ch**********@hotmail.com> wrote in message
news:dr**********@newsg1.svr.pol.co.uk...
It's attached in a previous post (through newgroups)


Ah, my server (and many others) don't accept attachments.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Jan 25 '06 #11
If you open the form in design view and then switch to form view this will
happen.

Does it still happen if you open straight to form view?

--

Terry Kreft
"Chippy" <ch**********@hotmail.com> wrote in message
news:dr**********@news6.svr.pol.co.uk...
This is driving me NUTZ.

All of my forms are keeping the size of the window I design them in, even
when I have the AutoResize option set to Yes.
The actual form (grey, gridded area) is the size I want it, but the window
it opens in is NOT this size.

This applies if I open the form directly, even if I then choose "Window,
Size to fit form".
I know the form stays the size of the design window when I switch to view
mode from design mode, but I can't get the form to resize correctly
anywhere!

I've tried adding:
With DoCmd
.Restore
.RunCommand acCmdSizeToFitForm
End With
to the Form_Open event, with no luck either.

I've tried changing the CanGrow/CanShrink options of the
Header/Detail/Footer sections...still no change.

Any suggestions?

Jan 26 '06 #12

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

Similar topics

16
by: David Lauberts | last post by:
Hi Wonder if someone has some words of wisdom. I have a access 2002 form that contains 2 graph objects that overlay each other and would like to export them as a JPEG to use in a presentation....
13
by: Manuel Lopez | last post by:
I have a puzzling form timer problem that I didn't experience prior to Access 2003 (though I'm not sure access 2003 is to blame). Here's the situation: a computer has two access 2003 databases on...
2
by: j.mandala | last post by:
This had got to be something obvious that I am too blind to see! Funny problem: one of my users has my application linked to a SQL Server Backend. Front end it Access XP (SP3). The first form...
14
by: alwayshouston | last post by:
Hi All! I am working on this very small database and I am confused in the designing a simple form. I only have three tables in the database. First Table: tblExpense Columns: ExpenseID ;...
6
by: lauren quantrell | last post by:
I have a command button on a continuous subform and I want the user to click it to open a small popup form that opens in the position of the mouse (which is the same as the position of the command...
11
by: Jozef | last post by:
I have some old code that I use from the Access 95 Developers handbook. The code works very well, with the exception that it doesn't seem to recognize wide screens, and sizes tab controls so that...
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...
2
by: usenet | last post by:
When I open a form design window in Access 2003 it *always* has scroll bars, this is even when the form itself is tiny. It's as if the 'page' on which the form is being designed is very large. ...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.