10963.html

来自「VB技巧问答10000例,是一个教程」· HTML 代码 · 共 23 行

HTML
23
字号
<html>
  <head>
    <title>Re: 谁来帮帮忙,谢谢!</title>
  </head>
  <body bgcolor="#FFFFFF" vlink="#808080">
    <center>
      <h1>Re: 谁来帮帮忙,谢谢!</h1>
    </center>
<hr size=7 width=75%>

<hr size=7 width=75%><p>
Posted by <a href="mailto:Chenlu@ms16.hinet.net">Tryit</a> on March 15, 1999 at 15:56:31:<p>
In Reply to: <a href="10917.html">谁来帮帮忙,谢谢!</a> posted by jojo on March 13, 1999 at 01:32:16:<p>
: 请问我的程式这样写有问题吗?为何程式跑到最后就停了?<p>: gsSqlDesc = ""<br>:     If strOpType = "ADD" Then<br>:         gsSqlDesc = gsSqlDesc + "Insert into TBL_Back Values ( '"<br>:         gsSqlDesc = gsSqlDesc + txtLoad + "','" + txtNum + "','" + txtArch + "','"<br>:         gsSqlDesc = gsSqlDesc + Date8to10(txtDate) + "'," + txtPe + ",'" + txtNam + "','"<br>:         gsSqlDesc = gsSqlDesc + txtPlac + "')"<br>:     End If<br>:     If strOpType = "UPT" Then<br>:         gsSqlDesc = gsSqlDesc + "UPDATE TBL_Back SET Num='" + txtNum + "'"<br>:         gsSqlDesc = gsSqlDesc + " WHERE Load= '" + txtLoad + "' AND Arch= '" + txtArch<br>:         gsSqlDesc = gsSqlDesc + "' AND DATE= '" + Date8to10(txtDate) + "' AND Pe='"<br>:         gsSqlDesc = gsSqlDesc + txtPe + "' AND Plac=" + txtPlac<br>:     End If<br>:     GblDB.Execute (gsSqlDesc)-----------停在这里<p>方法1:<br>先在前面加上Error Handle处理段<br>db execute 后面可加dbFailOnError<br>若有错误发生,可由错误代码找出问题点<p>方法2:<br>加Breakpoint Trace,display 最后的SQL Statement,也许会有你想不到的结果吧 <br>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 10963-->
</ul><!--end: 10963-->
<br><hr size=7 width=75%><p>

</body></html>

⌨️ 快捷键说明

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