13311.html

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

HTML
27
字号
<html>
  <head>
    <title>Re: Data Report (Data Environment) 与参数</title>
  </head>
  <body bgcolor="#FFFFFF" vlink="#808080">
    <center>
      <h1>Re: Data Report (Data Environment) 与参数</h1>
    </center>
<hr size=7 width=75%>

<hr size=7 width=75%><p>
Posted by Karrie on May 24, 1999 at 16:45:56:<p>
In Reply to: <a href="13232.html">Re: Data Report (Data Environment) 与参数</a> posted by job on May 21, 1999 at 17:44:30:<p>
: : 请教诸位同好,<br>: : 本人在Data Environment 的command中,<br>: : 利用sql 筛选出所需的资料以便产生report,<br>: : 但where 中有一条件需靠使用者在form 当中输入一个日期来决定要筛选的data,<br>: : 请问我该如何将那个参数从form 中传到command来<br>: : 我的sql该如何写?<p>: : 谢谢<p>:   DataEnvironment1.Commands(1).CommandType = adCmdText <br>:   DataEnvironment1.Commands(1).CommandText = strSql & " Where 日期 = #" & i & "#"<br>: dataEnvironment1.Commands(1).Execute<br>: 不过要先判定这个command1是否执行过<br>: 有的话要先<br>: DataEnvironment1.Recordsets(1).Close <p>您建议的方式是否在form 或 module 内宣告data environment 和 command, <br>但我目前是在设计师内新增data environment and command,<br>您说的指令我要写在何处?<br>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 13311-->
<!--top: 13405--><li><a href="13405.html">Re: Data Report (Data Environment) 与参数</a> <b>JOB</b> <i>10:49:02 5/26/99</i>
(<!--responses: 13405-->0)
<ul><!--insert: 13405-->
</ul><!--end: 13405-->
</ul><!--end: 13311-->
<br><hr size=7 width=75%><p>

</body></html>

⌨️ 快捷键说明

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