?? ac2k1504.htm
字號:
<html>
<head>
<title>洪恩在線 - Access 2000</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../../../pub/css/home.css">
<link rel="stylesheet" href="/pc/pc.css">
<meta name="keywords" content="電腦,教育,教程,辦公軟件,microsoft,Office,office,Access,Access 2000,數據庫">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<!--頂部開始-->
<script language="Javascript" src="/pub/js/head.js"></script>
<!--頂部結束-->
<table width="760" height="20" border=0 cellspacing="0" cellpadding="0" align="center">
<tr>
<td height=20 class="p1" bgcolor="#E8E8E8" align="left"><img src="/pc/img/blank.gif" width="12" height="8"><font color="#000000"><font color="#FF9966">當前位置</font>:<a href="/default.htm" class="under">洪恩在線</a>
-> <a href="/pc/index.htm" class="under">電腦樂園</a> -> Access 2000</font></td>
</tr>
</table>
<table width="760" border=0 cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="15"></td>
</tr>
</table>
<table width="760" cellspacing="0" border=0 cellpadding="0" align="center">
<tr>
<td width="145" valign="top" bgcolor="#E8E8E8" align="left" style="color:blue" height="183">
<img src="/pc/img/blank.gif" width="1" height="10" align=center><br>
<table width="145" border="0" cellspacing="0" cellpadding="0" bordercolor="#F8AC0E" align="center" height="20">
<tr bgcolor="000099" valign="middle">
<td width="109" align="center" class="p2"><font color="#FFFFFF"><b>Access
2000</b></font><font color="#FF3333" ><b></b></font></td>
<td height="20" bgcolor="#E8E8E8" width="13"><img src="/pc/img/title_00.gif" width="13" height="20"></td>
<td height="20" bgcolor="#E8E8E8" width="23"> </td>
</tr>
</table>
<p style="line-height:17pt" align="left"><span class="p1"><font color="#0000CC"><img src="img/small.gif" width="12" height="12">
<a href="ac2k0101.htm">初識Access 2000<br>
</a></font><font color="#0000CC"> </font></span><span class="p1"><font color="#0000CC"><img src="img/small.gif" width="12" height="12">
<a href="ac2k0201.htm">窗口接口使用簡介<br>
</a></font></span><font color="#0000CC"><span class="p1"><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font>
<a href="ac2k0301.htm">用向導建立數據庫</a></span></font><font color="#0000CC"><span class="p1"><a href="ac2k0301.htm">
<br>
</a><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font>
<a href="ac2k0401.htm">數據庫的結構</a> <span class="p1"><a href="ac2k0403.htm">
</a></span> <br>
<font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font>
<a href="ac2k0501.htm">用表向導建立表</a></span></font> <font color="#0000CC"><span class="p1"><a href="ac2k0501.htm">
<br>
</a><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font>
<a href="ac2k0601.htm">在表中輸入數據</a> <a href="ac2k0601.htm"><br>
</a><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font>
<a href="ac2k0701.htm">數據的類型和屬性</a><span class="p1"> </span><br>
</span></font><span class="p1"><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font>
<a href="ac2k0801.htm">定義表之間的關系</a></span><span class="p1"><br>
<font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font>
<a href="ac2k0901.htm">建立簡單的查詢</a></span><span class="p1"> <br>
<font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font>
<a href="ac2k1001.htm">為查詢制定規則</a><br>
<font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font>
<a href="ac2k1101.htm">如何建立數據窗體<br>
</a><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font>
<a href="ac2k1201.htm">生成數據打印報表</a></span><span class="p1"><br>
<font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font>
<a href="ac2k1301.htm">為WEB頁提供數據</a></span><span class="p1"> <br>
<font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font>
<a href="ac2k1301.htm"></a></span><span class="p1"></span><span class="p1"><a href="ac2k1401.htm">用圖表顯示數據</a></span>
<br>
<span class="p1"><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font>
<a href="ac2k1301.htm"></a></span><span class="p1"></span><span class="p1">宏的使用</span></p>
<p style="line-height:17pt" align="left"><span class="p1"> <a href="ac2k1501.htm">什么是宏</a><br>
<a href="ac2k1502.htm">為什么要用宏</a><br>
<a href="ac2k1503.htm">查看宏設計窗口</a><br>
創建宏<br>
<a href="ac2k1505.htm">了解宏包含的操作</a><br>
<a href="ac2k1506.htm">執行宏</a><br>
<a href="ac2k1507.htm">補充內容一</a><br>
<a href="ac2k1508.htm">補充內容二</a><br>
<a href="ac2k1509.htm">補充內容三</a><br>
<a href="ac2k1510.htm">補充內容四</a></span><br>
<br>
<span class="p1"><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font>
<a href="ac2k1301.htm"></a></span><span class="p1"></span><a href="ac2k1601.htm"><span class="p1">模塊與“VBA”語言</span><br>
</a><span class="p1"><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font>
<a href="ac2k1301.htm"></a></span><span class="p1"></span><a href="ac2k1701.htm"><span class="p1">SQL語言妙用</span><br>
</a><span class="p1"><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font>
<a href="ac2k1301.htm"></a></span><span class="p1"></span><a href="ac2k1801.htm"><span class="p1">外部數據的使用</span><br>
</a><span class="p1"><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font>
<a href="ac2k1301.htm"></a></span><span class="p1"></span><a href="ac2k1901.htm"><span class="p1">數據的優化和安全</span><br>
</a><span class="p1"><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font>
<a href="ac2k1301.htm"></a></span><span class="p1"></span><a href="ac2k2001.htm"><span class="p1">容易忽略的工作</span></a></p>
<p><span class="p1"> </span></p>
<p align="center" class=p1><a href=/pc/bin/msg.pl?file_id=k_ac2k_15 target="_blank"><img src="/pc/img/message.gif" width="64" height="54" alt="請您留言" border="0"><br>
談談您的看法</a> <br>
<script language="javascript">
speak_num="za"
</script>
<script language="javascript" src=/pc/var/pc_k_ac2k_15.js>
</script>
<script language="javascript">
var num=0
if (!isNaN(speak_num)){
num=speak_num;
}
else{
num=0
}
document.writeln ("已有")
document.writeln (num)
document.writeln ("條發言")
</script>
</p>
<p> </p>
<p> </p>
</td>
<td width=1 bgcolor=#0586D7 height="183"><img src="/pc/img/blank.gif" width="1" height="1">
</td>
<td valign="top" bgcolor="#FFFFFF" background="/pc/img/line.gif" width="614" height="183">
<table width="95%" border="0" align="center">
<tr background="/pc/img/line.gif">
<td colspan="2" class="p3" height="50">
<div align="center"><font color="#003333"><b><font color="#ff3333">創建宏</font></b></font></div>
</td>
</tr>
<tr background="/pc/img/line.gif">
<td class="p2" style="line-height:17pt" height="639">
<p> 講了宏的設計窗口,現在該親手來創建一個宏了。首先我們要打開一個數據庫,單擊數據庫窗口選項卡上的“宏”對象,然后單擊數據庫窗口上的“新建”選項。這時就彈出了宏設計器窗口。
</p>
<p> 因為這“宏名”和“條件”兩列并不是宏設計窗口上的默認選項,沒有這兩列,如果要用到這兩個選項,就需要單擊工具欄上的這兩個選項。現在這兩列都出現在窗口上了。這時我們就可以先為這個宏取個宏名,就叫“查詢”吧,然后我們將鼠標移動到操作這一列的第一行中,左鍵單擊下拉框右面的“向下”按鈕,這時就會彈出一個下拉菜單,在這個菜單上選擇所需的操作命令,然后單擊這個選項,那這個操作就會出現在這個下拉框中了。現在我們要執行一個叫“Gotocontrol”宏命令,那么就在這個下拉框中選中這個操作命令,如下圖所示。</p>
<p align="center"><img src="img/ac2k1503.gif" width="420" height="184" alt="選擇宏命令">
</p>
<p> 在選擇了基本宏操作后,我們還要在宏設計窗口下部的操作參數“控件名稱”中輸入此操作需要的參數,為了確定操作對象的焦點,我們在這個位置輸入“姓名”,這樣當我們執行這個宏的時候窗口上的焦點就會移動到“姓名”這個字段上來了。基本上每個操作都有操作參數,有的多一些,有的少一些,有的是必須填寫的,有的則可以取默認的值。只有設置好參數的宏操作才是合法的。不然ACCESS就不會接受。</p>
<p> 剛才我們所做的只是這個宏的第一個操作,將查詢的焦點移到“姓名”這個字段上,下一步我們要再加一個操作去找到“姓名”這個字段中的相應記錄。要實現這些,就將鼠標移動到表格的第二行,然后在操作這一個格選取“FINDRECORD”,現在我們來設定操作參數,參數“查找內容”這一欄中,我們輸入“=[需要查詢的值].value”,這個“需要查詢的值”是窗體上一個專門用來輸入查詢值的文本框的名字,而“匹配”這一欄中選擇“整個字段”,“格式化搜索”選“是”,其他的幾個參數都可以取默認,將這些選好以后。“查詢”宏就建好了。當然別忘了保存整個宏啊。
</p>
<p> </p>
</td>
</tr>
</table>
<p align="center"><a href="ac2k1503.htm" class="p1">上一頁</a> <font size="2"><a href="ac2k1505.htm"><font size="2">下一頁</font></a>
</font></p>
<p align="center" class=p2><a href=/pc/bin/msg.pl?file_id=k_ac2k_15 target="_blank"><img src="/pc/img/message.gif" width="64" height="54" alt="請您留言" border="0"><br>
談談您的看法</a>
<script language="javascript">
speak_num="za"
</script>
<script language="javascript" src=/pc/var/pc_k_ac2k_15.js>
</script>
<script language="javascript">
var num=0
if (!isNaN(speak_num)){
num=speak_num;
}
else{
num=0
}
document.writeln ("已有")
document.writeln (num)
document.writeln ("條發言")
</script>
</p>
</td>
</tr>
</table>
<!--底部開始-->
<script language="Javascript" src="/pub/js/foot.js"></script>
<!--底部結束-->
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -