Results 1 to 4 of 4
  1. #1
    Hasher is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2013
    Posts
    13

    Lines in a text field that can grow

    Hi, I have a report that has fields that can grow. the lines at the end of the row don't grow with the field. I have a picture attached to show what I mean. At the moment I have fixed lines Is there anyway to grow a line with a text field ?



    Click image for larger version. 

Name:	Lines.png 
Views:	16 
Size:	6.3 KB 
ID:	19025

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,920
    None that I know of. Use VBA code to draw vertical lines.

    Review:
    http://www.lebans.com/PrintLines.htm
    http://answers.microsoft.com/en-us/o...e-54cb8b6fe82c
    http://msdn.microsoft.com/en-us/libr...ffice.11).aspx

    Example from my report - there six line controls in my report which I reference to get the Left position of each drawn line.

    Private Sub Report_Page()
    '1440 twips per inch
    Me.Line (Me.lin1.Left, 720)-(Me.lin1.Left, 15120)
    Me.Line (Me.lin2.Left, 720)-(Me.lin2.Left, 15120)
    Me.Line (Me.lin3.Left, 720)-(Me.lin3.Left, 15120)
    Me.Line (Me.lin4.Left, 720)-(Me.lin4.Left, 15120)
    Me.Line (Me.lin5.Left, 720)-(Me.lin5.Left, 15120)
    Me.Line (Me.lin6.Left, 720)-(Me.lin6.Left, 15120)
    End Sub
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Hasher is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2013
    Posts
    13
    Ok is there a way to implement this in a subreport? I tried adding this to the Report_Page() in the subreport but it doesn't seem to work .

    I tried to refer to the from the main report but I seem to be calling it wrong.

    Reports![rptRAATaskPrint]![srptRAATaskPrint_A].Report![srptRAATaskPrint_B].Report!.Line

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,920
    Not that I know of. I've never needed in subreport.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 5
    Last Post: 11-24-2014, 04:51 PM
  2. Text Boxes Grow Horizontally
    By dvgef2 in forum Reports
    Replies: 4
    Last Post: 03-28-2013, 06:42 AM
  3. text box to grow or shrink horizontally
    By Ray67 in forum Reports
    Replies: 4
    Last Post: 01-29-2013, 07:50 PM
  4. Replies: 1
    Last Post: 10-10-2012, 12:25 PM
  5. Grow text box on form with focus
    By Karen H in forum Forms
    Replies: 5
    Last Post: 02-25-2011, 12:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums