I am trying to spin through a recordset removing the last character from each text value. The values are all -
Here is what I have so far but it's not working. Can somebody show me where I went wrong or point me to a better way?
It has been so long since I coded in Access that this it is like I am starting all over again with VBA.
Here is what I have so far but it's not working. Can somebody show me where I went wrong or point me to a better way?
Code:
Dim objDB As Database
Dim objRS As Recordset
Dim TempString As String
Dim ctr As Integer
Set objDB = CurrentDb()
Set objRS = objDB.OpenRecordset("bJCJP", dbOpenDynaset)
While Not objRS.EOF
TempString = ""
For ctr = 1 To Len(objRS![Phase])
TempString = _
TempString & _
Mid(objRS![Phase], ctr, 1, Len(objRS![Phase]) - 1)
Next
With objRS
.edit
![Phase] = TempString
.Update
.MoveNext
End With
Wend
It has been so long since I coded in Access that this it is like I am starting all over again with VBA.