# Re: 真的不了解.......

Posted by Joint on October 22, 1999 at 14:09:39:

In Reply to: Re: 真的不了解....... posted by ADO on October 22, 1999 at 10:59:30:

做了修改,试看看吧...
放一个datagrid及adodc观察看看

Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
Set cn = New ADODB.Connection

cn.CursorLocation = adUseClient
cn.Open "PROVIDER=Microsoft.Jet.OLEDB.3.51;Data Source=d:\database\music.mdb;"

Set rs = New ADODB.Recordset
rs.Open "select * from comic_name", db, adOpenStatic, adLockOptimistic

Set DataGrid1.DataSource = rs
Set adodc1.Recordset = rs

'Set Text1.DataSource = rs
'Text1.DataField = "索引"

Follow Ups:

- 一样.............. ADO 23:43:52 10/22/99 (2)
  - Re: 一样.............. Joint 15:13:59 10/23/99 (1)
    - Re: 一样.............. ADO 19:23:23 10/23/99 (0)