AccessGuruCarl
Programmer
Hello all,
I have report that displays the top 6 records, generated from a query.
I added an unbound label to the report called: lblPlace
I want the label to display: 1st, 2nd, 3rd...6th
Here is what a have so far, but it's printing 6th Place for every label... How do I get this to work on a report.
Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Dim x As Integer
For x = 1 To 6
Select Case x
Case 1
Me.lblPlace.Caption = "1st Place"
Case 2
Me.lblPlace.Caption = "2nd Place"
Case 3
Me.lblPlace.Caption = "3rd Place"
Case 4
Me.lblPlace.Caption = "4th Place"
Case 5
Me.lblPlace.Caption = "5th Place"
Case 6
Me.lblPlace.Caption = "6th Place"
End Select
Next x
End Sub
Thanks...
AccessGuruCarl
Programmers helping programmers
you can't find a better site.