19333.html
来自「VB技巧问答10000例,是一个教程」· HTML 代码 · 共 23 行
HTML
23 行
<html> <head> <title>Re: ADODC的同步问题??</title> </head> <body bgcolor="#FFFFFF" vlink="#808080"> <center> <h1>Re: ADODC的同步问题??</h1> </center><hr size=7 width=75%><hr size=7 width=75%><p>Posted by Sun Jack on September 26, 1999 at 21:14:33:<p>In Reply to: <a href="19326.html">ADODC的同步问题??</a> posted by 小新 on September 26, 1999 at 18:37:45:<p>: 当我用程式控制二个不同的资料录,但来源却是同一资料表,<br>: 如果其中一个资料录更改了内容,我再利用下列程式更新另一<br>: 资料录的内容时,<br>: If deData.rsCommand7.State <> adStateClosed Then<br>: deData.rsCommand7.Close<br>: End If<br>: Set DataGrid.DataSource = deData<br>: DataGrid.DataMember = "Command7"<br>: 却发生资料无法即时更新,要多等一会儿才会资料相同??<br>: 如何才能使资料更新同步呢??<p>这是 ADO 的资料处理方式,每个Connection 做的资料异动,并不会立刻显现在其它的Connection,必须要等5秒的时间,其它的Connection 才会读到正确的资料,因此你在这5秒内,针对同样的资料再做异动,就会发生你所说的现像,唯一的解决方式,只能在资料异动后,把做异动资料的Connection 取出,用这个Connection,读取最新的资料,再以这个Connection做其它的资料异动<br><br><hr size=7 width=75%><p><a name="followups">Follow Ups:</a><br><ul><!--insert: 19333--></ul><!--end: 19333--><br><hr size=7 width=75%><p></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?