分页:
上一页 1 [2] 3 4 5 6 7 下一页
" in the Customers table in the Northwind database
" that have "USA" in the Country field, you can
" use a line of code like this:
" FindRecord _
" "c:\Program Files\Microsoft Office\Office\Samples\Northwind.mdb", _
" "Customers", "Country="USA"", "CustomerID"
Dim cnn As ADODB.Connection
Dim rst As ADODB.Recordset
" Open the Connection object.
Set cnn = New ADODB.Connection
With cnn
.Provider = "Microsoft.Jet.OLEDB.4.0"
.Open strDBPath
End With
Set rst = New ADODB.Recordset
With rst
" Open the table by using a scrolling
" Recordset object.
.Open Source:=strTable, _
ActiveConnection:=cnn, _
分页:
上一页 1 [2] 3 4 5 6 7 下一页