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

📄 ac2k0704.htm

📁 我是在使用VC查询数据库时
💻 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"><img src="/pc/img/blank.gif" width="12" height="8"><font color="#000000"><font color="#FF9966">当前位置</font>:<a href="http://www.book52.com/">LR电脑书籍网 </a> → <a href="http://www.book52.com/soft/">电脑书下载 </a> → <a href="http://www.book52.com/soft/sort06/list6_1.html">数据库类 </a> → <a href="http://www.book52.com/soft/sort06/sort049/list49_1.html">Access书籍 </a>  <font color="#330099">→</font> 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>
          设置字段的属性(一) <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">&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">  设置完字段的“数据类型”,现在来设置字段的“属性”。表设计器的下半部分都是用来设置表中字段的“字段属性”的,字段属性包括有“字段大小”、“格式”、“输入法模式”等,设置它们会对表中的数值产生影响。</span></p>
            <p class=p2><span style="line-height:17pt">  先设置“订货单位”文本字段的各种属性,默认的“字段大小”为“50”,表示这个字段中最多可以输入50个字符。通常只需要十几个文字就足够表达一个“订货单位”的名称了,所以可将字段大小定为“25”。只要选中字段大小文本框,然后修改里面的数值就可以了。</span></p>
            <p align="center"><img src="img/ac2k0705.gif" width="481" height="293" alt="设置字段属性"></p>
            <p class=p2><span style="line-height:17pt">  字段大小是字段的属性之一。现在设置另一个属性:输入时的“格式”。在Access 2000中,有几种文本格式符号,使用这些符号可以将表中的数据按照一定的格式进行处理。具体格式符号及其用法将在课后补充中介绍。在“格式”文本框中输入“-”则“订货单位”的名称会向右对齐。如果在“格式”输入“!”符号,名称就会自动向左对齐。</span></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">   下面的“标题”属性一般情况下都不设,让它自动取这个字段的字段名,这样当在窗体上用到这个字段的时候就会把字段名作为它的标题来显示。“默认值”属性只要在它的文本框中输入某段文字,那么这个字段的值在没有重新输入之前,就会以所输入的文字作为该字段中的值。</span></p>
            </td>
        </tr>
      </table>  
      <p align="center"><font size="2"><a href="ac2k0703.htm">上一页</a>   <a href="ac2k0705.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 + -