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

📄 ac2k0705.htm

📁 一部Access2000的基础教程
💻 HTM
字号:
<html>
<head>
<!-- #BeginEditable "doctitle" -->
<title>洪恩在线 - Access 2000</title>
<!-- #EndEditable --> 
<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,数据库,字段属性,有效性规则,有效性文本,必填字段,允许空字符串,索引,Unicode 压缩,unicode">
</head>

<body bgcolor="white" text="black" topmargin="10" leftmargin="0" marginwidth="0" marginheight="10">
<!--顶部开始--> 
<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> 
      -&gt; <a href="/pc/index.htm" class="under">电脑乐园</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">&nbsp;</td>
        </tr>
      </table>
      <p></p>
      <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"> 
        </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></span></font><font color="#0000CC"><span class="p1"><a href="ac2k0601.htm"><br>
        </a><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font> 
        数据的类型和属性<br>
        </span></font></p>
      <p style="line-height:17pt" align="left"><font color="#0000CC"><span class="p1"><span class="p1">  
        <a href="ac2k0701.htm">用表设计器来创建表</a><br>
          <a href="ac2k0702.htm">怎样为表设置主键</a><br>
          <a href="ac2k0703.htm">为字段设置数据类型</a><br>
          <a href="ac2k0704.htm">设置字段的属性(一)</a> <br>
          设置字段的属性(二) <br>
          <a href="ac2k0706.htm">补充内容</a></span></span></font></p>
      <p style="line-height:17pt" align="left"><font color="#0000CC"><span class="p1"><a href="ac2k0701.htm"> 
        </a></span></font><span class="p1"><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font> 
        <a href="ac2k0801.htm" class="p1">定义表之间的关系<br>
        </a><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font> 
        <a href="ac2k0901.htm">建立简单的查询</a><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><br>
        <font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font> 
        <a href="ac2k1301.htm">为WEB页提供数据<br>
        </a><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font> 
        <a href="ac2k1301.htm"></a></span><a href="ac2k1401.htm" class="p1">用图表显示数据</a><br>
        <span class="p1"><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font> 
        <a href="ac2k1301.htm"></a></span><a href="ac2k1501.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><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><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><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><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><a href="ac2k2001.htm"><span class="p1">容易忽略的工作</span></a></p>
      <p style="line-height:17pt" align="left">&nbsp;</p>
      <p style="line-height:17pt" align="center" class=p1><a href=/pc/bin/msg.pl?file_id=k_ac2k_7 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_7.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 style="line-height:17pt" align="left"><span class="p1"><font color="#0000CC"><span class="p1"><span class="p1"> 
        <br>
        </span></span></font><span class="p1"><span class="p1"></span></span><span class="p1"> 
        </span></span> </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 colspan="2" class="p2"> 
            <p class=p2><span style="line-height:17pt">  “有效性规则”是为了检查字段中的值是否有效,可以在该字段的“有效性规则”框中输入一个表达式,Access会判断输入的值是否满足这个表达式,如果满足才能输入。输入违反该规则的字段值就无法将值输入到表中,并会提示我们不能输入与有效性规则相悖的数值。当然我们也可以单击这个属性输入文本框右面的“生成”按钮激活“表达式生成器”来生成这些表达式。而“有效性文本”这个属性中所填写的文字则是用来当用户输入错误的值时给用户的提示信息。</span></p>
            <p align="center"><img src="img/ac2k0706.gif" width="481" height="293" alt="设置字段属性"></p>
            <p class=p2><span style="line-height:17pt">  在Access中“表达式生成器”就是用来生成表达式的一段特殊的程序模块。通过它可以很方便地编写数据库中的各种表达式。它的用法在以后的课程中会有比较详细的讲解。在填写一个表的时候,常常会遇到一些必须填写的重要字段,像这个表中的“订货数量”字段就必须填写,不然我们就无法知道这份订单究竟订了多少货,所以要将这个字段的“必填字段”属性设为“是”。而对于那些要求得不那么严格的数据就可以设定对应字段的“必填字段”属性为“否”。它下面的“允许空字符串”属性问我们是否让这个字段里存在“零长度字符串”,通常将它设置为“否”。</span></p>
            <p class=p2><span style="line-height:17pt">  索引属性是表中一个重要的属性,当我们建立一个很大的数据库的时候,就会发现通过查询在表中检索一个数据信息很慢。通过分析发现,如果当我们要在一个表中的查询“订货单位”字段内的某个值时,会从整个表的开头一直查到末尾,如果能将表中额值进行排序,那同样的查询工作对“订货单位”字段检索的记录数就可以少很多,速度也自然会变得更快,所以很多表都需要建立索引,而“索引”字段就是为了定义是否将这个字段定义为表中的索引字段。“无”是不把这个字段作为索引,“有(有重复)”和“有(无重复)这两个选项都表示这个字段已经是表中的一个索引了,而“有(有重复)”允许在表的这个字段中存在同样的值,“有(无重复)”字段则表示在这个字段中绝对禁止相同的值。对于“订单信息表”,由于一个订货单位会多次订货,也就要签订多份订单,所以当我们要把这个字段作为表的索引时就需要将它的“索引”属性设为“有(有重复)”了。</span></p>
            <p class=p2><span style="line-height:17pt">  最后一个是“UNICODE”属性,“UNICODE”是微软公司为了使一个产品在不同的国家各种语言情况下都能正常运行而编写的一种文字代码,使用这种16位代码时只需要一个UNICODE就可以存储一个中文文字或英文字符。这样虽然很方便,但实际上在计算机中本来只要8位就可以存储一个英文字符,所以使用这种“UNICODE”方式实际上是比较浪费空间的。为了解决这个问题微软又想出了一个方法就是对数字或英文字符进行“UNICODE压缩”,所以对字段的这个属性我们一般都选择“有”,这样可以节省很多空间。字段属性栏右面的提示文字可以随时提供一些帮助。 
            </span></p>
            <p class=p2><span style="line-height:17pt">  结束语:现在你也能使用表的设计器来设计或修改一个表了吧。那就证明你对表的操作已经上了一个台阶了。但是你知不知道表与表之间的数据究竟是怎样联系的?如果你还回答不上,那就到下一课去看一看。 
            </span></p>
            </td>
        </tr>
      </table>  
      <p align="center"><font size="2"><a href="ac2k0704.htm">上一页</a>   <a href="ac2k0706.htm">下一页</a></font></p>
      <p align="center" class=p2><a href=/pc/bin/msg.pl?file_id=k_ac2k_7 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_7.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 + -