mattkorguk
Registered User.
- Local time
- Today, 20:37
- Joined
- Jun 26, 2007
- Messages
- 301
Hi All,
I thought I'd just try and write a quick Db to convert the alphabet into reverse. It's for a quiz which is being held at work, "who can decode the messages" type thing.
I'm just trying to have a text box, which the user can type in, the click on the 'convert' button and this gives the 'coded' message.
I've started down this route, but it seems not to be as straight forward as I was hoping!
I thought I'd just try and write a quick Db to convert the alphabet into reverse. It's for a quiz which is being held at work, "who can decode the messages" type thing.
I'm just trying to have a text box, which the user can type in, the click on the 'convert' button and this gives the 'coded' message.
I've started down this route, but it seems not to be as straight forward as I was hoping!
Code:
Dim mystring As String
Dim intcounter As Integer
For intcounter = 1 To Len(Me.TextEntry)
If Mid(Me.TextEntry, 1, intcounter) = Chr(65) Then
mystring = Replace(Me.TextEntry, Chr(65), Chr(90))
If Mid(Me.TextEntry, 1, intcounter) = Chr(66) Then
mystring = Replace(Me.TextEntry, Chr(66), Chr(89))
End If
End If
Me.Code = mystring
Me.Refresh
Next