
2.2 创建与保存数据库
在对Access 2013的操作环境有了一定的了解后,下面学习如何创建数据库文档,以及如何来保存文档并退出Access组件。另外,为了避免重复劳动,也为了保存劳动成果,需对编辑好的数据库文档进行保护性操作。
2.2.1 创建数据库
Access 2013在创建新数据库过程中,提供了更加方便的创建功能,包括空白数据库、模板数据库等。
1.创建空白数据库
用户启用Access 2013组件后,系统将自动进入【新建】页面,此时选择【空白桌面数据库】选项。

然后,在弹出的对话框中,输入数据库名称,单击【创建】按钮即可。


2.创建常用模板数据库
启动Access 2013组件,或在组件中执行【文件】|【新建】命令,在展开的【新建】页面中,选择需要使用的模板样式,例如选择【销售渠道】选项。


然后,在弹出的对话框中,设置数据库名称,单击【创建】按钮。此时,系统会自动下载模板内容。
3.创建Office网站模板
在【新建】页面中的【建议搜索】列表中,选择相应的搜索类型,即可新建该类型的相关演示文稿模板。例如,选择【小型企业】选项。


然后,在弹出的【小型企业】模板页面中,将显示联机搜索到的所有有关“小型企业”类型的数据库模板。用户只需在列表中选择模板类型,或者在右侧的【类别】窗口中选择模板类型,然后在列表中选择相应的数据库即可。


4.搜索模板
在【新建】页面中的搜索文本框中,输入需要搜索的模板类型。例如,输入“营销项目”文本。然后,单击搜索按钮,即可显示所搜索的模板文档。

2.2.2 保存数据库
Access 2013具有新建即保存的功能,但保存的位置一般为系统默认的文件位置。此时,如果用户想将文件保存在其他位置,则需要使用“另存为”功能重新保存数据库文档。除此之外,用户还可以单独保存数据库对象。
1.另存为数据库
执行【文件】|【另存为】命令,在展开的【另存为】列表中,选择【数据库另存为】选项。然后,在【数据库另存为】列表中,选择保存类型,单击【另存为】按钮。

在弹出的提示对话框中,单击【是】按钮。同时,在弹出的【另存为】对话框中,选择保存位置,设置保存名称,单击【保存】按钮即可。


2.保存数据库对象
执行【文件】|【另存为】命令,在展开的【另存为】列表中,选择【对象另存为】选项。然后,在【保存当前数据库对象】列表中,选择保存类型,单击【另存为】按钮。


然后,在弹出的【另存为】对话框中,设置保存类型和名称,单击【确定】按钮即可。

2.2.3 保护数据库
对于一些具有隐私内容的数据库,则需要通过为其加密的方法,来达到保护的效果。
执行【文件】|【信息】命令,在展开的列表中选择【用密码进行加密】选项。

然后,在弹出的【设置数据库密码】对话框中,输入密码和验证密码,单击【确定】按钮即可。
