dingding 发表于 2005-7-12 18:40:00

请教CAD与数据库的问题

&nbsp;<B>求教!关于CAD与数据库的问题。</B><BR>
<P>&nbsp;如下,在连接数据库,打开记录集之后,我要解决如下难题。</P>
<P><BR> &nbsp;'连接数据库<BR>&nbsp;&nbsp;&nbsp; Set adoCon = New ADODB.Connection<BR>&nbsp;&nbsp;&nbsp; adoCon.CursorLocation = adUseClient<BR>&nbsp;&nbsp;&nbsp; adoCon.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &amp; "d:\huitu\quyu.mdb"<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp; '打开记录集<BR>&nbsp;&nbsp;&nbsp; Set adoRs = New Recordset<BR>&nbsp;&nbsp;&nbsp; adoRs.Open "diyu", adoCon, adOpenDynamic, adLockOptimistic<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp; (1)对表"DIYU"的记录按AA="KLK"的条件进行筛选。(AA为字段名)</P>
<P> (2)将表"DIYU"复制为“SSS",</P>
<P>  我是一名初学者,加之手头资料有限,请各位大侠将具体代码写上,谢谢了。</P>
页: [1]
查看完整版本: 请教CAD与数据库的问题