Input Method: Repeated encoding analysis ~~~

Source: Internet
Author: User

The basic work has been completed... I have to do repeat code analysis... because of the most annoying and inefficient things in my life ....

Dim BM As String, OldBM As String
Dim CI As String, OldCI As String
Dim JS As Long
Dim n As Integer

Form5.Show
Form5.Label1. Caption = "the encoding is being analyzed ..."

Set rs = ADO. CreateRecordset ("SELECT * FROM YS_PY ")

While rs. EOF = False

BM = rs. Fields (0)
CI = rs. Fields (1)

If BM = OldBM Then

If CI = OldCI Then
N = n + 1
MsgBox "duplicate entries:" & CI & "-" & BM
End If

End If

OldBM = BM
Oldci = Ci

JS = JS + 1: doevents
Form5.progressbar1. value = (JS/Rs. recordcount) * 100

Rs. movenext

Wend

Form5.hide

If n = 0 then
Msgbox "No repeated entries! "
Else
Msgbox "found" & N & "duplicate entries! "
End if

Fortunately, there are no repeated codes in five strokes, and there are 3 in pinyin... Even if there are only three entries, it must be removed... Because the extra code is as annoying as the flower oil...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.