摘要:
将EXCEL数据存入SQL表, 一万行记录大概5秒Dim conn As New ADODB.ConnectionDim CNN As New ADODB.Connection'Dim rst As New ADODB.RecordsetDim Sql As StringDim j, v As In... 阅读全文
摘要:
Function RemoveNarrow(str As String) As String Set regEx = CreateObject("vbscript.regexp") With regEx .Global = 1 .Pattern = "[\x01-\x7f]+" RemoveNarrow = .Replace(str, "") End WithEnd FunctionFunction getCN(str As String) As String Dim iAsc As Integer Dim char As... 阅读全文
摘要:
按钮事件:View Code Private Sub CommandButton1_Click() Dim CN As New ADODB.Connection Dim recs As Integer Dim i As Integer Dim sql1, sql2 As String Dim j As Integer Const conn = "Provider = SQLOLEDB;" & _ "Data Source = SVR12\SQLEXPRESS;" & _ "Initial Cat... 阅读全文