Matt Greatorex
Registered User.
- Local time
- Today, 13:42
- Joined
- Jun 22, 2005
- Messages
- 1,019
Arwyn, just to confirm, is all now working or is there still a problem?
str_E = Replace(str_E, "H", "")
str_E = Replace(str_E, "A", "")
str_E = Replace(str_E, "L", "")
str_E = Replace(str_E, "S", "")
str_S = Replace(str_Overall, "H", "")
str_S = Replace(str_S, "A", "")
str_S = Replace(str_S, "L", "")
str_S = Replace(str_S, "E", "")
Arwyn said:str_Overall = [Jan2] & [Jan3] & [Jan4] & [Jan5]
msgbox str_Overall
str_H = Replace(str_Overall, "A", "")
Dim str_Overall As String
Dim str_H As String
Dim str_A As String
Dim str_L As String
Dim str_E As String
Dim str_S As String
Dim li_Final_H As Integer
Dim li_Final_A As Integer
Dim li_Final_L As Integer
Dim li_Final_E As Integer
Dim li_Final_S As Integer
str_Overall = [Jan2] & [Jan3] & [Jan4] & [Jan5]
str_H = Replace(str_Overall, "A", "")
str_H = Replace(str_H, "L", "")
str_H = Replace(str_H, "E", "")
str_H = Replace(str_H, "S", "")
str_A = Replace(str_Overall, "H", "")
str_A = Replace(str_A, "L", "")
str_A = Replace(str_A, "E", "")
str_A = Replace(str_A, "S", "")
str_L = Replace(str_Overall, "H", "")
str_L = Replace(str_L, "A", "")
str_L = Replace(str_L, "E", "")
str_L = Replace(str_L, "S", "")
msgbox "Point 0: " & str_Overall ' -- Hopefully says 'Point 0: HALE'
str_E = Replace(str_Overall, "H", "")
msgbox "Point 1: " & str_E ' -- Hopefully says 'Point 1: ALE'
str_E = Replace(str_E, "A", "")
msgbox "Point 2: " & str_E ' -- Hopefully says 'Point 2: LE'
str_E = Replace(str_E, "L", "")
msgbox "Point 3: " & str_E ' -- Hopefully says 'Point 3: E'
str_E = Replace(str_E, "S", "")
msgbox "Point 4: " & str_E ' -- Hopefully says 'Point 4: E'
str_S = Replace(str_Overall, "H", "")
str_S = Replace(str_S, "A", "")
str_S = Replace(str_S, "L", "")
str_S = Replace(str_S, "E", "")
li_H = Len(str_H)
li_A = Len(str_A)
li_L = Len(str_L)
li_E = Len(str_E)
msgbox "Point 5: Length = " & li_E ' -- Hopefully says 'Point 5: Length = 1'
li_S = Len(str_S)
fieldforhresult = li_H & "H"
fieldforaresult = li_A & "A"
fieldforlresult = li_L & "L"
fieldforeresult = li_E & "E"
msgbox "Point 6: FieldForEResult = " & me![fieldforeresult]
' -- Hopefully says 'Point 6: FieldForEResult = 1E'
fieldforsresult = li_S & "S"
End Sub