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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I print something on the first detail line only

Status
Not open for further replies.

jeep2001

Programmer
Dec 15, 2005
134
US
I have a report that groups detail records by account.
I have a value I would like to print a value on the first detail line of the group. Is there a way to isolate the value for the first detail line of a group in a report.

Thanks
 
Perhaps something like:
Code:
Option Compare Database
Option Explicit
Dim intLineNo

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
intLineNo = intLineNo + 1
If intLineNo = 1 Then
    Me.txtLineOne = "This is line one"
Else
    Me.txtLineOne = "Blah"

End If
End Sub

Private Sub GroupFooter1_Format(Cancel As Integer, FormatCount As Integer)
intLineNo = 0
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top