Private Sub Command1_Click()
Dim a As ADODB.Connection
Dim b As ADODB.Recordset
Set a = New ADODB.Connection
Set b = New ADODB.Recordset
d = Text1.Text
a.Open "liu", "", ""
b.CursorLocation = adUseClient
b.Open "select * from corpinf where corpid like '" & d & "'", a, adOpenDynamic, adLockBatchOptimistic
If b.RecordCount = 0 Then
b.AddNew
b("corpid") = Trim(Text1.Text)
b.update
end sub
怎么添加不到数据中数据呀!