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

📄 20679.html

📁 VB技巧问答10000例 VB技巧问答10000例
💻 HTML
字号:
<html>  <head>    <title>Re: select 里能不能使用变数?</title>  </head>  <body bgcolor="#FFFFFF" vlink="#808080">    <center>      <h1>Re: select 里能不能使用变数?</h1>    </center><hr size=7 width=75%><hr size=7 width=75%><p>Posted by <a href="mailto:jeremy61@tcts.seed.net.tw">bmf</a> on October 27, 1999 at 10:23:26:<p>In Reply to: <a href="20678.html">select 里能不能使用变数?</a> posted by 般若 on October 27, 1999 at 10:16:19:<p>: OVER1 = "select * from APP where left(APPNO,3) = Pmodel"        <br>: APP.RecordSource = OVER1<br>: APP.Refresh<br>: *APP为资料库名,APPNO为栏位名,Pmodel为一变数(字串)<br>: 我在执行以上程式时,程式停在APP.Refresh这行,错误讯息为<br>: ”无数值提供给一或多个必要参数” <br>: 我的变数确实有资料,那请教一下,使用SELECT语法时,是不是不能使用到变数?<p>试试以下写法<br>OVER1 = "select * from APP where left(APPNO,3) ='" & Pmodel & "'"        <p><br><br><hr size=7 width=75%><p><a name="followups">Follow Ups:</a><br><ul><!--insert: 20679--></ul><!--end: 20679--><br><hr size=7 width=75%><p></body></html>

⌨️ 快捷键说明

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