VB获取recordset记录集的时候,出现怪现象。请高手看看
With conn .CursorLocation = adUseClient .CommandTimeout = 5 .ConnectionString = " Provider=SQLOLEDB.1;Persist Security Info=True;Data Source=" & dbserver & ";Initial Catalog=" & dbName & ";User ID=" & userName & ";Password=" & psw' Debug.Print .ConnectionString .Opendim rs As ADODB.Recordsetset rs = nothingSet rs = conn.Execute(strSQL)if rs is nothing then msgbox "没有获取到数据"end if End With