?? ac2k1601.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"><a href="ac2k1501.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">模塊與“VBA”語言</span></p>
<p style="line-height:17pt" align="left"><span class="p1"> 什么是VBA和模塊<br>
<a href="ac2k1602.htm">VBA開發環境</a><br>
<a href="ac2k1603.htm">變量和常量</a><br>
<a href="ac2k1604.htm">函數和子程序</a> <br>
</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><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 align="center" class=p1><a href=/pc/bin/msg.pl?file_id=k_ac2k_16 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_16.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>
<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">
什么是VBA和模塊</font></b></font></div>
</td>
</tr>
<tr background="/pc/img/line.gif">
<td class="p2" style="line-height:17pt">
<p> 雖然宏很好用,但它運行的速度比較慢,也不能直接運行很多WINDOWS的程序。尤其是不能自定義一些函數,這樣當我們要對某些數據進行一些特殊的分析時,它就無能為力了。</p>
<p> 由于宏具有這些局限性,所以在給數據庫設計一些特殊的功能時,需要用到“模塊”對象來實現,而這些“模塊”都是由一種叫做“VBA”的語言來實現的。使用它編寫程序,然后將這些程序編譯成擁有特定功能的“模塊”,以便在Access2000中調用。</p>
<p> VB,就是微軟公司推出的可視化BASIC語言,用它來編程非常簡單。因為它簡單,而且功能強大,所以微軟公司將它的一部分代碼結合到OFFICE中,形成我們今天所說的VBA。它的很多語法繼承了“VB”,所以我們可以像編寫VB語言那樣來編寫VBA程序,以實現某個功能。當這段程序編譯通過以后,將這段程序保存在Access中的一個模塊里,并通過類似在窗體中激發宏的操作那樣來啟動這個“模塊”,從而實現相應的功能。</p>
<p> “模塊”和“宏”的使用是差不多的。其實Access中的“宏”也可以存成“模塊”,這樣運行起來的速度還會更快呢。“宏”的每個基本操作在“VBA”中都有相應的等效語句,使用這些語句就可以實現所有單獨“宏”命令,所以“VBA”的功能是非常強大的。如果你要用Access來完成一個負責的桌面數據庫系統,你就應該掌握“VBA”,它可以幫你實現很多功能。但如果你只是偶爾使用一下Access或者只是用Access來做一些簡單的工作,你只要簡單了解一下它就可以了。</p>
</td>
</tr>
<tr background="/pc/img/line.gif">
<td class="p2" style="line-height:17pt">
<p> </p>
<p align="center"><img src="img/inster03.gif" width="250" height="229" alt="插圖" border="1"></p>
</td>
</tr>
</table>
<p align="center"><a href="ac2k1602.htm" class="p1">下一頁</a><font size="2"> </font></p>
<p align="center"> </p>
<p align="center" class=p2><a href=/pc/bin/msg.pl?file_id=k_ac2k_16 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_16.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 + -