📄 5010.html
字号:
<html>
<head>
<title>Re: SQL的笨问题</title>
</head>
<body bgcolor="#FFFFFF" vlink="#808080">
<center>
<h1>Re: SQL的笨问题</h1>
</center>
<hr size=7 width=75%>
<hr size=7 width=75%><p>
Posted by <a href="mailto:tomatoboy@hongkong.com">Steve TSE</a> on August 24, 1998 at 12:42:09:<p>
In Reply to: <a href="4984.html">SQL的笨问题</a> posted by yeong huann on August 23, 1998 at 02:29:10:<p>
: 请问在VB中如何能不用透过QueryDef物件而能直接使用SQL的程式码,又此时资料表的属性该如何设定?<br>: 谢谢!!<p>You can use data control's RECORDSOURCE property or OpenRecordset with SQL statement to do it.<br>For example, <br> strSQL = "SELECT * FROM Publisher " & _<br> "WHERE PublishID = '" & Text1.text & "'"<br> datDataCtl.RecordSource = strSQL<br> datDataCtl.Refresh<p> Dim rst as Recordset<br> rst = gdbCurrentDB.OpenRecordset(strSQL, _ dbOpenDynaset)<br>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 5010-->
</ul><!--end: 5010-->
<br><hr size=7 width=75%><p>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -