12491.html
来自「以电子书的形式收集了VB一些常见问题解决方法,可以很方便的查找自己需要解决的问题」· HTML 代码 · 共 23 行
HTML
23 行
<html>
<head>
<title>Re: Answer for "login"</title>
</head>
<body bgcolor="#FFFFFF" vlink="#808080">
<center>
<h1>Re: Answer for "login"</h1>
</center>
<hr size=7 width=75%>
<hr size=7 width=75%><p>
Posted by Spencer Yang on April 30, 1999 at 00:43:45:<p>
In Reply to: <a href="12485.html">Inbox的Cancel出了问题(求救)!!!</a> posted by Cloudyland on April 29, 1999 at 21:31:48:<p>
一、你的程式相当别出心裁,让我无从找出无数循环解!<br>二、请用vb精灵,建立frmLogin,然后加上data控制项,再加些程式码即可!<br>三、假如frmlogin,程式码大约如下<p>Private Sub cmdSearch_Click()<br> Dim strID As String<br> Dim strMsgBox As String<br> Dim enumMsgResult As VbMsgBoxResult<br> <br> ' 判断1: txtID是否为空<br> ' 判断2: 判断是否找到 id<br> ' 判断3: 使用者是否按下OK 钮, 是者回到 txtID 栏位, 按下 Cancel 则离开<br> <br> If txtID.Text <> "" Then<br> <br> datAF.Recordset.FindFirst "ID =" & Chr(39) & txtID & Chr(39)<br> <br> If datAF.Recordset.NoMatch Then<br> strMsgBox = "Not Found(" & txtID.Text & ") this ID!"<br> <br> enumMsgResult = MsgBox(strMsgBox, vbOKOnly)<br> If enumMsgResult = vbNo Then<br> txtID.SetFocus<br> Exit Sub<br> Else<br> Exit Sub<br> End If<br> End If<br> End If<br>End Sub<br>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 12491-->
</ul><!--end: 12491-->
<br><hr size=7 width=75%><p>
</body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?