Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

draw line in mid page

Status
Not open for further replies.

kok0kok

Technical User
Dec 21, 2010
18
I want draw line in mid report page for this condithion :

if count(myfield) < 15

or ( group page rowes less than 15 row )

and start new page under this line ? ;-)
 
Is this a vertical or horizontal line?

It isn't at all clear what you mean by "group page". Can you try provide more details and possibly some sample output/display?

Duane
Hook'D on Access
MS Access MVP
 
in this file i want not line in mid page 3 and page 5 started after line in page 4
 
ok & thank
in my report are one group is named " dast " and my report show :
no page number rows mid horizental line i want
1 9 yes yes
2 15 yes yes
3 45(1-45) yes [red color]NO[/color]
4 2(46-47) yes yes

therefore i want start page 5 after line in page 4

i draw line in mid page with this code :

Private Sub Report_Page()
Me.Report.DrawWidth = 0.5
Me.Report.DrawStyle = 4
Me.Report.Line (0, 8150)-(12000, 8150), vbBlue
End Sub
 
ok & thank
in my report are one group is named " dast " and my report show :
no.page |rows |H line |i want | want start new page after line
1 9 yes yes yes
2 15 yes yes yes
3 45(1-45) yes [COLOR=red ]NO[/color] yes
4 2(46-47) yes yes yes

therefore i want start page 5 after line in page 4

i draw line in mid page with this code :

Private Sub Report_Page()
Me.Report.DrawWidth = 0.5
Me.Report.DrawStyle = 4
Me.Report.Line (0, 8150)-(12000, 8150), vbBlue
End Sub


 
[sadeyes]

ok

please tell me your Comprehend of my Description

Subsequently i correct my Description

[sadeyes]

tank B-)
 
If you don't want a line on page 3 you should be able to use code like
Code:
Private Sub Report_Page()
    If Me.Page <> 3 Then
            Me.Report.DrawWidth = 0.5
            Me.Report.DrawStyle = 4
            Me.Report.Line (0, 8150)-(12000, 8150), vbBlue
    End If
End Sub

Duane
Hook'D on Access
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top