One of the most important things we have to learn about getting help in a technical forum, is that only you, the person asking the question, can actually see the tables, forms, code etc. in your application.It wants me to enter paramenter value "1st"
Public Function GetOrdinal(TheNumber As Variant) As String
Dim suffix As String
If Not IsNull(TheNumber) Then
suffix = "th"
If TheNumber Mod 100 >= 11 And TheNumber Mod 100 <= 13 Then
suffix = "th"
ElseIf TheNumber Mod 10 = 1 Then
suffix = "st"
ElseIf TheNumber Mod 10 = 2 Then
suffix = "nd"
ElseIf TheNumber Mod 10 = 3 Then
suffix = "rd"
End If
GetOrdinal = CStr(TheNumber) & suffix
End If
End Function
Notice any difference between what you posted and what gasman posted?Code:=Choose([placed],[”1st”],[”2nd”],[”3rd”])
Not what I posted?GPGeorge
I did copy what Gasman posted, when I placed it in the control source of the text box the code was change automatically to what you just posted. Quit being so quick to judge.