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

📄 什么是vba和模块.htm

📁 非常不错的介绍Access2000的资料
💻 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">在线教程</a> -&gt; 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"><br>
        </a>&nbsp;<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>&nbsp; </p>
      <p>        </p>
      <p>&nbsp; </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="ac2k1510.htm">上一页</a>&nbsp;&nbsp;&nbsp; <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"><br>
         </a></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 + -