B
Ben
I have three memo labels on my report that I have growing with their related
memo field. ActionItems, ActionItemsOverdue, Other.
The code works below works as in it allows the label to grow with the Memo.
My problem is that after the label grows I want the border to change to
hairline for each Label.
Code Below:
Dim lngHeight As Long
Dim lngHeight1 As Long
Dim lngHeigh2 As Long
Dim X1 As Single
Dim Y1 As Single
Dim Y2 As Single
Dim X2 As Single
Dim A1 As Single
Dim A2 As Single
Dim A3 As Single
Dim A4 As Single
Dim B1 As Single
Dim B2 As Single
Dim B3 As Single
Dim B4 As Single
Me.DrawStyle = 0
lngHeight = Me.Action_Items.Height
lngHeight1 = Me.ActionItemsOverdue.Height
lngHeight2 = Me.Other.Height
X1 = ActionItems_Label.Left
A1 = ActionItemsOverdue_Label.Left
B1 = Other_Label.Left
X2 = ActionItems_Label.Left + ActionItems_Label.Width
A4 = ActionItemsOverdue_Label.Left + ActionItemsOverdue_Label.Width
B4 = Other_Label.Left + Other_Label.Width
Y1 = ActionItems_Label.Top
A2 = ActionItemsOverdue_Label.Top
B2 = Other_Label.Top
Y2 = ActionItems_Label.Top + lngHeight
A3 = ActionItemsOverdue_Label.Top + lngHeight1
B3 = Other_Label.Top + lngHeight2
Me.Line (X1, Y1)-(X2, Y2), 12632256, BF
Me.Line (A1, A4)-(A2, A3), 12632256, BF
Me.Line (B1, B4)-(B2, B3), 12632256, BF
Thanks,
Ben
memo field. ActionItems, ActionItemsOverdue, Other.
The code works below works as in it allows the label to grow with the Memo.
My problem is that after the label grows I want the border to change to
hairline for each Label.
Code Below:
Dim lngHeight As Long
Dim lngHeight1 As Long
Dim lngHeigh2 As Long
Dim X1 As Single
Dim Y1 As Single
Dim Y2 As Single
Dim X2 As Single
Dim A1 As Single
Dim A2 As Single
Dim A3 As Single
Dim A4 As Single
Dim B1 As Single
Dim B2 As Single
Dim B3 As Single
Dim B4 As Single
Me.DrawStyle = 0
lngHeight = Me.Action_Items.Height
lngHeight1 = Me.ActionItemsOverdue.Height
lngHeight2 = Me.Other.Height
X1 = ActionItems_Label.Left
A1 = ActionItemsOverdue_Label.Left
B1 = Other_Label.Left
X2 = ActionItems_Label.Left + ActionItems_Label.Width
A4 = ActionItemsOverdue_Label.Left + ActionItemsOverdue_Label.Width
B4 = Other_Label.Left + Other_Label.Width
Y1 = ActionItems_Label.Top
A2 = ActionItemsOverdue_Label.Top
B2 = Other_Label.Top
Y2 = ActionItems_Label.Top + lngHeight
A3 = ActionItemsOverdue_Label.Top + lngHeight1
B3 = Other_Label.Top + lngHeight2
Me.Line (X1, Y1)-(X2, Y2), 12632256, BF
Me.Line (A1, A4)-(A2, A3), 12632256, BF
Me.Line (B1, B4)-(B2, B3), 12632256, BF
Thanks,
Ben