how to make a line straight

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In an Access report, how can I be sure my line will be straight? For example, after using the wizard there is a line under my label controls. I wanted to increase the length of the line, but when I do, the line ends up crooked

Is there a way to avoid this aside from being one hundred percent precise with the mouse

THanks
WEND
 
1) don't use wizards to create reports since you almost always have to go
back and re-arrange controls
2) snap all controls to grid
3) use rectangles rather than lines
4) to draw a line at the bottom of a section, use code like
Private Sub PageHeaderSection_Format(Cancel As Integer, FormatCount As
Integer)
'draw line at bottom of page header section
Me.Line (0, Me.PageHeaderSection.Height)-Step(Me.Width, 0)
End Sub

--
Duane Hookom
MS Access MVP


wendy said:
In an Access report, how can I be sure my line will be straight? For
example, after using the wizard there is a line under my label controls. I
wanted to increase the length of the line, but when I do, the line ends up
crooked.
 
Wendy,

You can set the width of the line, or any of its other dimensions, by using
the properties sheet. Also, when a line becomes crooked or jagged, the
easiest way to make it straight again is to use the properties sheet and set
its Height to 0.


hth,
--

Cheryl Fischer, MVP Microsoft Access
Law/Sys Associates, Houston, TX


wendy said:
In an Access report, how can I be sure my line will be straight? For
example, after using the wizard there is a line under my label controls. I
wanted to increase the length of the line, but when I do, the line ends up
crooked.
 
wendy said:
In an Access report, how can I be sure my line will be straight? For example, after using the wizard there is a line under my label controls. I wanted to increase the length of the line, but when I do, the line ends up crooked.

Is there a way to avoid this aside from being one hundred percent precise with the mouse?


If you set the Snap to Grid option, it doesn't require such
precise mouse movements.

OTOH, you could always set the line's Height property to 0
to guarantee a horizontal line.

Instead of dragging the line to make it longer, you could
can just set its Width property.
 
In an Access report, how can I be sure my line will be straight? For example, after using the wizard there is a line under my label controls. I wanted to increase the length of the line, but when I do, the line ends up crooked.

Is there a way to avoid this aside from being one hundred percent precise with the mouse?

THanks,
WENDY

To add to what the others have said, to draw a straight line, either
vertically or horizontally using the line control, hold down the shift
key while dragging the line across the page.
 
Back
Top