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

Posted by ADO on October 22, 1999 at 10:59:30:

In Reply to: Re: 真的不了解....... posted by Joint on October 22, 1999 at 01:45:50:

:
: Dim cn As Connection
: Set cn = New Connection
: cn.CursorLocation = adUseClient

: 查看看 CursorLocation 是否为 adUseClient ??
: 另外你是否在Addnew之后有问题?
: 还是其它动作之后出问题?
: 再不行,可否贴上来看看那里出错.(开资料库那一段)
我是用adodc控制项(用data也是一样)写的...命令类型是2-adcmdtable, 资料表是一般的.mdb,
CursorLocation是adUseClient
没有addnew...也没其它动作..只是一般浏览(在label上)
我用ado物件重写一次...但结果还是一样
Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
Set cn = New ADODB.Connection
Text2.Text = cn.CursorLocation
cn.ConnectionString = "provider=microsoft.jet.oledb.3.51;" & "data source=d:\database\music.mdb"
cn.Open
Set rs = New ADODB.Recordset
rs.Open "comic_name", cn
Set Text1.DataSource = rs
Text1.DataField = "索引"
执行结果:
CursorLocation是adUseClient
记录也是和用adodc一样..27,11-25,1-10,26
会是我的资料表有问题吗?.......

谢谢你.......

Follow Ups:

- Re: 真的不了解....... Joint 14:09:39 10/22/99 (3)
  - 一样.............. 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)