Home Database Mysql Tutorial 2011年计算机等考二级Access考前模拟题(38)

2011年计算机等考二级Access考前模拟题(38)

Jun 07, 2016 pm 03:03 PM
access Level 2 Before the exam computer

一、基本操作题 在考生文件夹下,samp1.mdb数据库文件中已建立好表对象tStud和tScore、宏对象mTest和窗体fTest。试按以下要求,完成各种操作: (1)分析表对象tScore的字段构成、判断并设置其主键; (2)删除tStud表结构的照片字段列、在简历字段之前增添一个新

 一、基本操作题

  在考生文件夹下,“samp1.mdb”数据库文件中已建立好表对象“tStud”和“tScore”、宏对象“mTest”和窗体“fTest”。试按以下要求,完成各种操作:

  (1)分析表对象“tScore”的字段构成、判断并设置其主键;

  (2)删除“tStud”表结构的“照片”字段列、在“简历”字段之前增添一个新字段(字段名称:团员否 数据类型:“是/否”型);

  (3)隐藏“tStud”中的“所属院系”字段列;

  (4)将考生文件夹下文本文件Test.txt中的数据导入到当前数据库中。其中,第一行数据是字段名,导入的数据以“tTest”数据表命名保存;

  (5)将窗体“fTest”中名为“bt2”的命令按钮,其高度设置为1厘米、左边界设置为左边对齐“bt1”命令按钮;

  (6)将宏“mTest”重命名为自动运行的宏。

  二、简单应用题

  考生文件夹下存在一个数据库文件“samp2.mdb”,里面已经设计好三个关联表对象“tStud”、“tCourse”和“tScore”。此外,还提供窗体“fTest”和宏“mTest”,试按以下要求完成设计:

  (1)创建一个选择查询,查找年龄大于25的学生的“姓名”、“课程名”和“成绩”三个字段内容,所建查询命名为“qT1”;

  (2)创建生成表查询,组成字段是没有书法爱好学生的“学号”、“姓名”和“入校年”三列内容(其中“入校年”数据由“入校时间”字段计算得到,显示为四位数字年的形式),生成的数据表命名为“tTemp”,所建查询命名为“qT2”。

  (3)补充窗体“fTest”上“test1”按钮(名为“bt1”)的单击事件代码,实现以下功能:打开窗体,在文本框“tText”中输入一段文字,然后单击窗体“fTest”上“test1”按钮(名为“bt1”),补充代码设置窗体上标签“bTitle”的标题为文本框“tText”输入内容与文本串“等级考试测试”的连接并消除连接串的前导和尾随空白字符。

  注意:不允许修改窗体对象“fTest”中未涉及的控件和属性;只允许在“*****Add1*****”与“*****Add1*****”之间的空行内补充语句、完成设计。

  (4)设置窗体“fTest”上“test2”按钮(名为“bt2”)的单击事件为宏对象“mTest”。

  三、综合应用题

  考生文件夹下存在一个数据库文件“samp3.mdb”,里面已经设计了表对象“tEmp”和窗体对象“fEmp”。同时,给出窗体对象“fEmp”上“追加”按钮(名为bt1)和“退出”按钮(名为bt2)的单击事件代码,,试按以下要求完成设计。

  (1)删除表对象“tEmp”中年龄在25到45岁之间(不含25和45)的非党员职工记录信息;

  (2)设置窗体对象“fEmp”的窗体标题为“追加信息”;

  (3)将窗体对象“fEmp”上名为“bTitle”的标签以特殊效果:阴影显示;

  (4)按照以下窗体功能,补充事件代码设计。

  在窗体的四个文本框内输入合法的职工信息后,单击“追加”按钮(名为bt1),程序首先判断职工编号是否重复,如果不重复则向表对象“tEmp”中添加职工纪录,否则出现提示;当点击窗体上的“退出”按钮(名为bt2)时,关闭当前窗体。

  注意:不允许修改表对象“tEmp”中未涉及的结构和数据;不允许修改窗体对象“fEmp”中未涉及的控件和属性;代码设计只允许在“*****Add*****”与“*****Add*****”之间的空行内补充语句、完成设计,不允许增删和修改其它位置已存在的语句。

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to disable background applications in Windows 11_Windows 11 tutorial to disable background applications How to disable background applications in Windows 11_Windows 11 tutorial to disable background applications May 07, 2024 pm 04:20 PM

1. Open settings in Windows 11. You can use Win+I shortcut or any other method. 2. Go to the Apps section and click Apps & Features. 3. Find the application you want to prevent from running in the background. Click the three-dot button and select Advanced Options. 4. Find the [Background Application Permissions] section and select the desired value. By default, Windows 11 sets power optimization mode. It allows Windows to manage how applications work in the background. For example, once you enable battery saver mode to preserve battery, the system will automatically close all apps. 5. Select [Never] to prevent the application from running in the background. Please note that if you notice that the program is not sending you notifications, failing to update data, etc., you can

How to convert deepseek pdf How to convert deepseek pdf Feb 19, 2025 pm 05:24 PM

DeepSeek cannot convert files directly to PDF. Depending on the file type, you can use different methods: Common documents (Word, Excel, PowerPoint): Use Microsoft Office, LibreOffice and other software to export as PDF. Image: Save as PDF using image viewer or image processing software. Web pages: Use the browser's "Print into PDF" function or the dedicated web page to PDF tool. Uncommon formats: Find the right converter and convert it to PDF. It is crucial to choose the right tools and develop a plan based on the actual situation.

What does dao mean in java What does dao mean in java Apr 21, 2024 am 02:08 AM

DAO (Data Access Object) in Java is used to separate application code and persistence layer, its advantages include: Separation: Independent from application logic, making it easier to modify it. Encapsulation: Hide database access details and simplify interaction with the database. Scalability: Easily expandable to support new databases or persistence technologies. With DAOs, applications can call methods to perform database operations such as create, read, update, and delete entities without directly dealing with database details.

Can't allow access to camera and microphone in iPhone Can't allow access to camera and microphone in iPhone Apr 23, 2024 am 11:13 AM

Are you getting "Unable to allow access to camera and microphone" when trying to use the app? Typically, you grant camera and microphone permissions to specific people on a need-to-provide basis. However, if you deny permission, the camera and microphone will not work and will display this error message instead. Solving this problem is very basic and you can do it in a minute or two. Fix 1 – Provide Camera, Microphone Permissions You can provide the necessary camera and microphone permissions directly in settings. Step 1 – Go to the Settings tab. Step 2 – Open the Privacy & Security panel. Step 3 – Turn on the “Camera” permission there. Step 4 – Inside, you will find a list of apps that have requested permission for your phone’s camera. Step 5 – Open the “Camera” of the specified app

What does field mean in java What does field mean in java Apr 25, 2024 pm 10:18 PM

In Java, a "field" is a data member in a class or interface that is used to store data or state. The properties of field include: type (can be any Java data type), access rights, static (belongs to a class rather than an instance), final (immutable) and transient (not serialized). Field is used to store state information of a class or interface, such as storing object data and maintaining object state.

How does the Java reflection mechanism modify the behavior of a class? How does the Java reflection mechanism modify the behavior of a class? May 03, 2024 pm 06:15 PM

The Java reflection mechanism allows programs to dynamically modify the behavior of classes without modifying the source code. By operating the Class object, you can create instances through newInstance(), modify private field values, call private methods, etc. Reflection should be used with caution, however, as it can cause unexpected behavior and security issues, and has a performance overhead.

How to read dbf file in oracle How to read dbf file in oracle May 10, 2024 am 01:27 AM

Oracle can read dbf files through the following steps: create an external table and reference the dbf file; query the external table to retrieve data; import the data into the Oracle table.

What does a memory stick look like? What does a memory stick look like? Apr 21, 2024 pm 01:01 PM

What does a computer memory module look like? This is an overview of the graphics card and memory module in the computer. The computer's independent graphics card is inserted into the graphics card slot, with a fan, and the memory module is inside the memory module slot on the computer's motherboard, shaped like a green rectangle. Laptop memory modules are different from desktop memory modules, and they cannot be used interchangeably. Appearance difference 1: Desktop memory, slender, 13-14 cm in length. 2: Notebook memory is shorter, about five centimeters. Memory is the bridge in the computer, responsible for data exchange between the processor and hardware such as hard disk, motherboard, and graphics card. The red circle on the way is the memory stick, next to the CPU fan and plugged into the memory stick. Look, a computer memory stick looks like this. Use a screwdriver to open the cover of the desktop computer. The red circle in the middle is the memory module. What is a memory stick?

See all articles