Solved

Horizontal line doesn't extend to width of form

Posted on 2013-05-20
4
483 Views
Last Modified: 2013-05-20
I have a form with a horizontal line between the header and the detail sections.  I'm using tabbed document for the current database.  How do I make the line fill the horizontal width of the form?
0
Comment
Question by:SteveL13
[X]
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
4 Comments
 
LVL 12

Expert Comment

by:pdebaets
ID: 39181315
If you see a bit of space on the right, it may be because you have the vertical scroll bar enabled, even though the bar itself doesn't appear. Try setting your form ScrollBars property to Horizontal Only, or None.
0
 
LVL 47

Assisted Solution

by:Dale Fye (Access MVP)
Dale Fye (Access MVP) earned 250 total points
ID: 39181431
Is this only occuring on your computer, or on others?

When you draw the line, it must be wide enough to extend across your entire screen.  If you have the navigation pane open during form design, the "form" width is less than it might be if you have the navigation pane closed.  If that is the case, just change the width of the line.

This could also be an issue of designing the form on one screen and actually displaying it in a different screen size of resolution.
0
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 250 total points
ID: 39181606
Is this a deal breaker.?
I would just live with it...
...because the ultimate fix might also create some unwanted side eeffects
(I personally hate tabbed windows because I only keep one form open at a time...)


Solution 1
The brute force, work everywhere answer.

Make the line 22 inches long
(This will make the form 22 inches wide as well)
22 is the max width of a form.

By doing this, no matter how big the screen, or what the users resolution is, the line will always extend to the end of the form.

*Issues* with doing this:
1. This assumes that Tabbed documents will *always* be the database style, else all of your forms will be 22 inches wide)
2. This forces a horizontal scroll bar to always appear, even if there are no controls to scroll to ( Yes, you can turn off the scroll bar, ...but this means users can't scroll even if there are controls to the right of the visible area)

Again, for me this is a non-issue.
The line not extending is the least of my worries,
;-)
...as I can't see how this will effect the user in any way...


Solution 2. (much better IMHO)
Don't use a "Line", ...just change the color of the header.
By changing the color of the form header it will always appear across the entire form.
Like so:
form header
JeffCoachman
0
 

Author Comment

by:SteveL13
ID: 39181635
To be honest I really don't like tabbed forms either but it seems one of our people wants this one to be that way.  I think I'll either get rid of the lines or make 'em long enough to satisfy most screen resolutions.

Thanks.
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

739 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