Hi Guys,
Can anyone help me with this one.
I have the following "Public Function" to put the word "Band" before a number in a report:
Public Function GetOrdinal2(lngItem As Long) As String
Dim intOnesDigit As Integer
Dim strReturn As String
Dim intTemp As Integer
intTemp = lngItem Mod 100
If intTemp <= 10 Then
strReturn = "Band "
End If
GetOrdinal2 = strReturn & lngItem
End Function
but number 8 has a letter after it like: 8A, 8B, 8c, or 8D.
At the moment it is showing as "error"
Thanks in advance.
Can anyone help me with this one.
I have the following "Public Function" to put the word "Band" before a number in a report:
Public Function GetOrdinal2(lngItem As Long) As String
Dim intOnesDigit As Integer
Dim strReturn As String
Dim intTemp As Integer
intTemp = lngItem Mod 100
If intTemp <= 10 Then
strReturn = "Band "
End If
GetOrdinal2 = strReturn & lngItem
End Function
but number 8 has a letter after it like: 8A, 8B, 8c, or 8D.
At the moment it is showing as "error"
Thanks in advance.