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

📄 9856.html

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

<hr size=7 width=75%><p>
Posted by <a href="mailto:sld0j@cc.usu.edu">Ta</a> 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<br>For i = 1 To cs.RecordCount - 1<br>List1.AddItem cs(i)<br>cs.MoveNext<br>Next i<p>If I put these codes in DBcombo, it will show 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
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 9856-->
<!--top: 9859--><li><a href="9859.html">Re: Hard to understand WHY</a> <b>AndyLin</b> <i>14:01:23 2/04/99</i>
(<!--responses: 9859-->1)
<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-->
</ul><!--end: 9856-->
<br><hr size=7 width=75%><p>

</body></html>

⌨️ 快捷键说明

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