4974.html

来自「以电子书的形式收集了VB一些常见问题解决方法,可以很方便的查找自己需要解决的问题」· HTML 代码 · 共 26 行

HTML
26
字号
<html>
  <head>
    <title>请教一个vb问题...谢谢!!</title>
  </head>
  <body bgcolor="#FFFFFF" vlink="#808080">
    <center>
      <h1>请教一个vb问题...谢谢!!</h1>
    </center>
<hr size=7 width=75%>

<hr size=7 width=75%><p>
Posted by <a href="mailto:jajabo@tpts5.seed.net.tw">Gary</a> on August 22, 1998 at 14:23:19:<p>
Private Sub Option1_Click()<br>Dim cre As Long<p>Dim bkm As Variant<br>On Error GoTo ed<p>bkm = data1.Recordset.Bookmark<br>cre = InputBox$("请输入欲查询编号:", "查询")<p><br>data1.Recordset.FindFirst "编号 =" & cre<p> If data1.Recordset.NoMatch Then<br> data1.Recordset.Bookmark = bkm<br> Call worng<br>Command2.Enabled = False<br>Com2.Enabled = True<br>Else<br>Command2.Enabled = True<br>Com2.Enabled = False<br>End If<p>ed:<br>End Sub<p>===========================<p>Private Sub Command2_Click()<p><br>data1.Recordset.FindNext "编号 =" & cre<br>If data1.Recordset.NoMatch Then<br>MsgBox "己经没有'" & cre & "'的客户资料!", vbOKOnly, "搜寻资料"<br>Command2.Enabled = False<br>Com2.Enabled = True<br>Else<br>Command2.Enabled = True<br>Com2.Enabled = False<br>End If<p>End Sub<p><br>以上是我的程式:请问command2 要如何取得 option1 中 cre 的值呢??<p>~~ 麻烦一下...谢谢.. vb白痴留... ^.^"
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 4974-->
<!--top: 4975--><li><a href="4975.html">Re: 请教一个vb问题...谢谢!!</a> <b>Honey</b> <i>16:44:13 8/22/98</i>
(<!--responses: 4975-->0)
<ul><!--insert: 4975-->
</ul><!--end: 4975-->
</ul><!--end: 4974-->
<br><hr size=7 width=75%><p>

</body></html>

⌨️ 快捷键说明

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