make subforms grow with forms

Posted on 2009-04-02
Medium Priority
Last Modified: 2013-11-28
I have a form wich contains a subform.
I am having troubles with auto resize in regards to widescreens and normal screens.
The parent form fullscreens upon open.

The trouble that I'm having is when the parent form fullscreens in a widescreen, the subform does not and just looks stupid.
(it is left to right)
Is there a way to have my subform's 'grow' with the parent form?

Question by:jpostuma
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 75

Accepted Solution

DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 500 total points
ID: 24055287
You might want to look at this:


It covers ALL cases of forms, subforms, subforms inside of subforms.  I have it and it works very well.

LVL 74

Assisted Solution

by:Jeffrey Coachman
Jeffrey Coachman earned 500 total points
ID: 24055554
When you say "FullScreen" do you mean "Maximized"?
Or do you mean your forms are openig full screen as "Tabbeded" forms (Then new View in Access 2007)

In either case the form is soiply "Opening" not "Growing" so the subfrom will remain the same size.

Your goal when designing your forms should be to make it loook god in any resolution.

Since you are using Access 2007, you should really investigate all the  new "Anchoring", sizing and positioning options for forms.
Forms  controls can now grow dynamically when resized.
Similar to the way a web page will grow or shrink when you adjust any webbrowser elements (Like making the Favorites pane wider or narrower.)



Author Comment

ID: 24055894
thanks to both of you.
I'm just going to split the points.
that program looks sweet, and anchoring works great.

is there any sort of anchoring system that can work with datasheet view?
I've tried, but to no avail.
I have subforms that are in datasheet view, and they stretch fine, but the columns stay the same size.

anyways, don't mean to make you guys answer more than one question, but I would apprecieate it.
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 24057965

"is there any sort of anchoring system that can work with datasheet view?"
Not that I know of.
The question is; if the Datasheet form is designed so that the entire filed is visible, then why would it need to grow?
Perhaps the link MX posted will mainipulate the subform in this way though...

"don't mean to make you guys answer more than one question"
As MX will tell you, "Follow-up" questions are fine.

The problem arises when the "follow-up" question requires a different train of thought.

Good Follow up question example:
Original question: How do I view two columns in a combo Box?
Answer: Include the second column in  the rowsource and Set the Column Width Property to: 1,1
Follow up question: How do I sort by the second column?
Answer: set the Row source to: SELECT Col1,Col2, FROM Table ORDER BY Col2

Not-so-good Follow up question:
Original question: How do I view two columns in a combo Box?
Answer: Include the second column in  the rowsource and Set the Column Width Property to: 1,1
Follow up question: How do I make this combobox automatically add values?
Answer: This should be posted as a New question.

As you can see, from the askers standpoint the followup is "related" to the original question becaues it still deals with the combobox.
From an answering perspective, making a combobox add values requires a totally different approach.



Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question