📄 怎样使用表设计器来创建表.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,数据库,表设计器,表,创建">
</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"><font color="#000000"><font color="#FF9966">当前位置</font>:<a href="/default.htm">在线教程</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"> </td>
<td height="20" bgcolor="#E8E8E8" width="23"> </td>
</tr>
</table>
<p></p>
<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">
用表设计器来创建表<br>
<a href="ac2k0702.htm">怎样为表设置主键</a><br>
<a href="ac2k0703.htm">为字段设置数据类型</a><br>
<a href="ac2k0704.htm">设置字段的属性(一)</a> <br>
<a href="ac2k0705.htm">设置字段的属性(二)</a> <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"> </p>
<p style="line-height:17pt" align="center" class=p1><a href=/pc/bin/msg.pl?file_id=k_ac2k_7 target="_blank"><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"><font color="#0000CC"><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"><br>
</span></span></font><span class="p1"><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 class=p2><span style="line-height:17pt"> 要使用表设计器来创建一个表,首先要打开表设计器。在数据库窗口中,将鼠标移动到“创建方法和已有对象列表”上双击“使用设计器创建表”选项,弹出“表1:表”对话框。</span></p>
<p align="center"><img src="img/ac2k0701.gif" width="398" height="293" alt="表设计器对话框"></p>
<p class=p2><span style="line-height:17pt"> 对话框分为两个部分,上半部分是表设计器,下半部分用来定义表中字段的属性。表的设计器其实就是一个数据表,只是在这个数据表中只有“字段名称”、“数据类型”和“说明”三列,当我们要建立一个表的时候,只要在设计器“字段名称”列中输入表中需要字段的名称,并在“数据类型”列中定义那些字段的“数据类型”就可以了。设计器中的“说明”列中可以让表的制作人对那些字段进行说明,以便以后修改表时能知道当时为什么设计这些字段。</span></p>
<p class=p2><span style="line-height:17pt"> 现在我们就用表设计器来建立一个记录订单信息的表。首先要知道在“订单”表中需要包括的信息,在这个表中一定要有“订单号”、“订货单位”、“货物名称”、“订货数量”、“经手人”、“订货日期”等信息,在表设计器的“字段名称”列中按顺序输入这些字段的名称,表就初步建好了。</span></p>
<p class=p2><span style="line-height:17pt"> 现在切换到“数据表”视图来看看用表设计器建立的表。单击工具栏上“视图”按钮,这时在屏幕上会出现一个提示框,提示“必须先保存表”,并询问“是否立即保存表”,由于我们还没有保存过这个表,所以单击“是”按钮来保存这个表,这时弹出另一个“另存为”对话框,在“表名称”文本框中输入“订单信息表”,单击“确定”按钮,将这个表保存为“订单信息表”。又弹出一个对话框说“没有添加主键”,因为每个表中都至少应该有一个主键,而我们还没有设定把哪个字段作为这个表的主键。如果选择“是”按钮,Access就会在刚才建立的表上添加一个字段,并把这个字段作为表的主键,我们单击“否”按钮,不让Access添加主键。现在看到的这个表就是我们刚才利用表设计器生成的表了。</span></p>
<p align="center"><img src="img/ac2k0702.gif" width="417" height="146" alt="数据表视图"></p>
<p class=p2><span style="line-height:17pt"> 在表中,这种由表格构成的窗口叫做表的“数据表视图”,是表最直观的一种表现方法。不管用什么方法生成的表最终都要切换到这个视图下才能进行数据的输入,而一个表建立得是否合理也会在这个视图中反映出来。但要为表设置主键,为字段设置数据类型和属性,就必须切换回“设计视图”才能实现相应的操作。</span></p>
</td>
</tr>
</table>
<p align="center"><a href="ac2k0609.htm">上一页</a> <a href="ac2k0702.htm">下一页</a></p>
<p align="center" class=p2><a href=/pc/bin/msg.pl?file_id=k_ac2k_7 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 + -