Reversing a field

Sara Overton

Registered User.
Local time
Today, 14:19
Joined
May 22, 2001
Messages
34
I have a field containing numbers.

I need to display the field in reverse order.

Any ideas how to perform this?
 
Funny world, I just wrote this function today for someone posting in forms.

Public Function reverse(txtfield As String) As String
Dim i As Integer
reverse = ""
If Len(txtfield) > 0 Then
For i = 0 To Len(txtfield) - 1
reverse = reverse & Mid(txtfield, Len(txtfield) - i, 1)
Next i
Else
reverse = ""
End If
End Function


HTH
Charity
 

Users who are viewing this thread

Back
Top Bottom