17529.html

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

HTML
23
字号
<html>  <head>    <title>Re: 请问有关Access资料库的问题!!!!</title>  </head>  <body bgcolor="#FFFFFF" vlink="#808080">    <center>      <h1>Re: 请问有关Access资料库的问题!!!!</h1>    </center><hr size=7 width=75%><hr size=7 width=75%><p>Posted by 大汉堡 on August 19, 1999 at 23:04:53:<p>In Reply to: <a href="17490.html">请问有关Access资料库的问题!!!!</a> posted by Patw on August 19, 1999 at 12:55:11:<p>: 请问一下,我写了一个Access资料库维护的程式...<br>: 1.我想将其中一个栏位能在程式中控制(按一下钮),便将此栏位通通加1,可能做到吗?<br>: 2.还有,我想让搜寻的条件增为两个:<br>: Dim a<br>: Dim b<br>: a = "Select * From 123 Where 456 = '" & Text1.Text "'"<br>: b = "Select * From 123 Where 789 = '" & Text2.Text "'"<br>: Adodc1.CommandType = adCmdText<br>: Adodc1.RecordSource = a And b '就是这里有问题,请问要如何写才好ㄋ?<br>: Adodc1.Refresh<br>: 请会的人教教我吧!在此先谢了!!<p>1.adodc1.recordsource="select * from 123 where 456 ='" & text1 & "' and 789 ='" & text2 & "'" <br>2.如果只是要将上述RecordSet的一个Field 加一,可直接用Update的SQL Statement<br>  如:Update TableName set Field = Field + 1 Where 同样的条件式 <br><br><hr size=7 width=75%><p><a name="followups">Follow Ups:</a><br><ul><!--insert: 17529--></ul><!--end: 17529--><br><hr size=7 width=75%><p></body></html>

⌨️ 快捷键说明

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