Private Sub Command0_Click()
Dim i As Integer
Dim STemp As String
Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset
STemp = "Select * From 表1"
rs.Open STemp, CurrentProject.Connection, adOpenKeyset, adLockOptimistic
For i = 1 To rs.RecordCount
DoCmd.SetWarnings False
STemp = "update 表1 set A=left(A,2)&mid(号码,1,6)&right(A,13)"
DoCmd.RunSQL STemp
Next i
End Sub