Currently this Module works placing "Members scores for 22/05/2012 out of a possible 200.020 were:" before the scores.
I would like to add a post script after the scores " Open from 6pm" if anyone can help...
I would like to add a post script after the scores " Open from 6pm" if anyone can help...
Code:
Function ScoreRankingTotal(ByVal dtRank As Date, ByVal boolRanked As Boolean, Optional intTop As Integer = 0) As String Dim qdf As QueryDef Dim rs As Recordset Dim strRank As String strRank = "Members scores for " & Format(dtRank, "dd/mm/yy") & "; out of a possible 200.020 were: " Set qdf = CurrentDb.QueryDefs("20020") qdf.Parameters("[View Date]") = dtRank Set rs = qdf.OpenRecordset Do While Not rs.EOF strRank = strRank & rs.Fields("Member") & " " & rs.Fields("Total") & "; " If rs.AbsolutePosition = intTop - 1 Then Exit Do rs.MoveNext Loop Set rs = Nothing Set qdf = Nothing ScoreRankingTotal = strRank End Function
Comment