Please help. I am trying to figure out why in the crazy world I am getting this. Please can someone tell me in simple terms if this is related to some file or table physical size limitation, or a change in the integer/field definitions of the text file I am trying to import. It had been working fine for quite some time and now this....I import a text file, then when I hit the cmd4 button, this appears....Please in the name of Access, help me....thanks so much..Please if you could explain simply, and perhaps modify below what you think might be the fix..thank you,
>Private Sub cmd4_Click()
> Dim dbs As Database
> Dim int1, int2 As Integer
> Dim rst1 As Recordset
> Dim str1 As String
>
> Set dbs = CurrentDb
> Set rst1 = dbs.OpenRecordset("Consign"
>
> rst1.MoveFirst
>
> int1 = 5
>
> Do While Not rst1.EOF
> If Mid(rst1!ConsignAdd1, 5, 1) Like "[a-zA-Z]" Then
> rst1.Edit
> rst1!ConsignAdd1 = "Attn: " & Mid(rst1!ConsignAdd1, 6,
>Len(rst1!ConsignAdd1))
> rst1.Update
> Else
> Do While Not (str1) Like "[a-zA-Z]"
> str1 = Mid(rst1!ConsignAdd1, int1, 1)
> int2 = int1
> int1 = int1 + 1
> Loop
> rst1.Edit
> rst1!ConsignAdd1 = "Attn: " & Mid(rst1!ConsignAdd1, int2,
>Len(rst1!ConsignAdd1))
> rst1.Update
> str1 = ""
> int1 = 5
> int2 = 0
> End If
> rst1.MoveNext
> Loop
>
>
>End Sub
>Private Sub cmd4_Click()
> Dim dbs As Database
> Dim int1, int2 As Integer
> Dim rst1 As Recordset
> Dim str1 As String
>
> Set dbs = CurrentDb
> Set rst1 = dbs.OpenRecordset("Consign"
>
> rst1.MoveFirst
>
> int1 = 5
>
> Do While Not rst1.EOF
> If Mid(rst1!ConsignAdd1, 5, 1) Like "[a-zA-Z]" Then
> rst1.Edit
> rst1!ConsignAdd1 = "Attn: " & Mid(rst1!ConsignAdd1, 6,
>Len(rst1!ConsignAdd1))
> rst1.Update
> Else
> Do While Not (str1) Like "[a-zA-Z]"
> str1 = Mid(rst1!ConsignAdd1, int1, 1)
> int2 = int1
> int1 = int1 + 1
> Loop
> rst1.Edit
> rst1!ConsignAdd1 = "Attn: " & Mid(rst1!ConsignAdd1, int2,
>Len(rst1!ConsignAdd1))
> rst1.Update
> str1 = ""
> int1 = 5
> int2 = 0
> End If
> rst1.MoveNext
> Loop
>
>
>End Sub