⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 9859.html

📁 VB技巧问答10000例 VB技巧问答10000例
💻 HTML
字号:
<html>
  <head>
    <title>Re: Hard to understand WHY</title>
  </head>
  <body bgcolor="#FFFFFF" vlink="#808080">
    <center>
      <h1>Re: Hard to understand WHY</h1>
    </center>
<hr size=7 width=75%>

<hr size=7 width=75%><p>
Posted by AndyLin on February 04, 1999 at 14:01:23:<p>
In Reply to: <a href="9856.html">Hard to understand WHY</a> posted by Ta on February 04, 1999 at 13:15:03:<p>
: <br>: Following are my codes:<p>: Dim qb as database<br>: dim cs as recordset<p>: Set qb = OpenDatabase("a:\access\businessdata.mdb")<br>: Set cs = qb.OpenRecordset("SalesRecord")<p>: cs.MoveLast<br>: cs.MoveFirst<p>: If I put these codes in DBcombo, it will show : For i = 1 To cs.RecordCount - 1<br>: List1.AddItem cs(i)<br>: cs.MoveNext<br>: Next i<br>error message "Item not found in this collection" .  Problem is at List1.AddItem "cs(i)"<p>: If I put these codes in commandbox or form, it will show error message <br>: " user defined type not defined"   Problem is at Dim "qb as database"<p>: Please help me solve problem. Thanks<p> For i = 1 To cs.RecordCount - 1<br> List1.AddItem cs(i)    'this is not cs(i),I shall is cs(fieldname)<br> cs.MoveNext<br> Next i<p>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 9859-->
<!--top: 9874--><li><a href="9874.html">Re: Hard to understand WHY</a> <b>Ta</b> <i>05:24:02 2/05/99</i>
(<!--responses: 9874-->0)
<ul><!--insert: 9874-->
</ul><!--end: 9874-->
</ul><!--end: 9859-->
<br><hr size=7 width=75%><p>

</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -