A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

double underline textbox



 
 
Thread Tools Display Modes
  #1  
Old April 30th, 2009, 05:08 PM posted to microsoft.public.access.reports
gator
external usenet poster
 
Posts: 166
Default double underline textbox

how can I apply a double underline for the text in a textbox, besides
dragging a line (twice) from the toolbox?
  #2  
Old May 1st, 2009, 03:37 PM posted to microsoft.public.access.reports
Duane Hookom
external usenet poster
 
Posts: 7,177
Default double underline textbox

You can use a little code in the On Format event of the report section
containing the text box to draw lines:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Dim lngY1 As Long
Dim lngX1 As Long
Dim intXLength As Integer
Dim intYSpace As Integer
lngX1 = Me.txtBoxToDoubleUnderline.Left
intXLength = Me.txtBoxToDoubleUnderline.Width
intYSpace = 20
lngY1 = Me.txtBoxToDoubleUnderline.Top + Me.txtBoxToDoubleUnderline.Height
Me.Line (lngX1, lngY1)-Step(intXLength, 0)
Me.Line (lngX1, lngY1 + intYSpace)-Step(intXLength, 0)
End Sub

--
Duane Hookom
Microsoft Access MVP


"gator" wrote:

how can I apply a double underline for the text in a textbox, besides
dragging a line (twice) from the toolbox?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:51 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.