2012年计算机二级Access上机模拟试题(4)
一、基本操作题 在考生文件夹下,存在一个数据库文件samp1.mdb,里边已经设计好表对象tCollect。试按以下操作要求,完成表的建立和修改: (1)创建一个名为tComposer的新表,其结构如下: (2)将作曲家字段设置为主键,显示标题设置为作曲家编号; (3)将作曲家名
在考生文件夹下,存在一个数据库文件“samp1.mdb”,里边已经设计好表对象“tCollect”。试按以下操作要求,完成表的建立和修改:
(1)创建一个名为“tComposer”的新表,其结构如下:
(2)将“作曲家”字段设置为主键,显示“标题”设置为“作曲家编号”;
(3)将“作曲家名称”字段设置为“必填”字段;
(4)将“年代”字段的“格式”属性设置为“长日期”;
(5)将“年代”字段的“有效性规则”设置为:输入的日期必须满足在1980年以后(含1980年)的作曲家,并设置“有效性文本”为:“年代日期必须为1980年以后的作曲家”;
(6)打开“tCollect”表,冻结“CDID”字段,隐藏“价格”字段,并保存显示布局。
二、简单应用题
考生文件夹下存在一个数据库文件“samp2.mdb”,里面已经设计好表对象“tCollect”、“tpress”和“tType”,试按以下要求完成设计:
(1)创建一个查询,查找收藏品中CD盘最高价格和最低价格信息并输出,标题显
示为“v_Max”和“v_Min”,所建查询名为“qT1”;
(2)创建一个查询,查找并显示购买“价格”大于100元并且“购买日期”在2001年以后(含2001年)的“CDID”、“主题名称”、“价格”、“购买日期”和“介绍”五个字段的内容,所建查询名为“qT2”;
(3)创建一个查询,通过输入CD类型名称,查询并显示“CDID”、“主题名称”、“价格”、“购买日期” 和“介绍”五个字段的内容,当运行该查询时,应显示参数提示信息“CD类型名称:”,所建查询名为“qT3”;
(4)创建一个查询,对“tType”表进行调整,将“类型ID”等于“05”的记录中的“类型介绍”字段更改为“古典音乐”,所建查询名为“qT4”。
三、综合应用题
考生文件夹下存在一个数据库文件“samp3.mdb”,里面已经设计好表对象“tCollect”,查询对象“qT”,同时还设计出以“tCollect”为数据源的窗体对象“fCollect”。试在此基础上按照以下要求补充窗体设计:
(1)将窗体“fCollect”的记录源改为查询对象“qT”;
(2)在窗体“fCollect”的窗体页眉节区位置添加一个标签控件,其名称为“bTitle”,标题显示为“CD明细”,字体名称为“黑体”,字号大小为20,字体粗细为“加粗”;
(3)将窗体标题栏上的显示文字设为“CD明细显示”;
(4)在窗体页脚节区位置添加一个命令按钮,命名为“bC”,按钮标题为“改变颜色”;
(5)设置所建命令按钮bC的单击事件,使用户单击该命令按钮后,CDID标签的显示颜色改为红色。要求用VBA代码实现。
注意:不允许修改窗体对象“fCollect”中未涉及的控件和属性;不允许修 改表对象“tCollect”和查询对象“qT”。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

The advantage of multithreading is that it can improve performance and resource utilization, especially for processing large amounts of data or performing time-consuming operations. It allows multiple tasks to be performed simultaneously, improving efficiency. However, too many threads can lead to performance degradation, so you need to carefully select the number of threads based on the number of CPU cores and task characteristics. In addition, multi-threaded programming involves challenges such as deadlock and race conditions, which need to be solved using synchronization mechanisms, and requires solid knowledge of concurrent programming, weighing the pros and cons and using them with caution.

SQL IF statements are used to conditionally execute SQL statements, with the syntax as: IF (condition) THEN {statement} ELSE {statement} END IF;. The condition can be any valid SQL expression, and if the condition is true, execute the THEN clause; if the condition is false, execute the ELSE clause. IF statements can be nested, allowing for more complex conditional checks.

The main reasons why you cannot log in to MySQL as root are permission problems, configuration file errors, password inconsistent, socket file problems, or firewall interception. The solution includes: check whether the bind-address parameter in the configuration file is configured correctly. Check whether the root user permissions have been modified or deleted and reset. Verify that the password is accurate, including case and special characters. Check socket file permission settings and paths. Check that the firewall blocks connections to the MySQL server.

How to avoid the third-party interface returning 403 error in the Node environment. When calling the third-party website interface using Node.js, you sometimes encounter the problem of returning 403 error. �...

How to configure Zend in Apache? The steps to configure Zend Framework in an Apache Web Server are as follows: Install Zend Framework and extract it into the Web Server directory. Create a .htaccess file. Create the Zend application directory and add the index.php file. Configure the Zend application (application.ini). Restart the Apache Web server.

Methods to solve the cross-domain problem of Vue Axios include: Configuring the CORS header on the server side using the Axios proxy using JSONP using WebSocket using the CORS plug-in

Get ComponentVerify in EasyWechat5.5...

This article will explain how to improve website performance by analyzing Apache logs under the Debian system. 1. Log Analysis Basics Apache log records the detailed information of all HTTP requests, including IP address, timestamp, request URL, HTTP method and response code. In Debian systems, these logs are usually located in the /var/log/apache2/access.log and /var/log/apache2/error.log directories. Understanding the log structure is the first step in effective analysis. 2. Log analysis tool You can use a variety of tools to analyze Apache logs: Command line tools: grep, awk, sed and other command line tools.
