Home Database Mysql Tutorial 2012年计算机二级Access重点:分析之报表(5)

2012年计算机二级Access重点:分析之报表(5)

Jun 07, 2016 pm 03:03 PM
a access Level 2 analyze Report computer

在Access中利用计算控件进行统计计算并输出结果操作主要有两种形式: 1主体节内添加计算控件 在主体节内添加计算控件对每条记录的若干字段值进行求和或求平均计算时,只要设置计算控件的控件源为不同字段的计算表达式即可。 2 组页眉/组页脚节区内或报表页

在Access中利用计算控件进行统计计算并输出结果操作主要有两种形式:

  1主体节内添加计算控件

  在主体节内添加计算控件对每条记录的若干字段值进行求和或求平均计算时,只要设置计算控件的控件源为不同字段的计算表达式即可。

  2 组页眉/组页脚节区内或报表页眉/报表页脚区内添加计算字段

  在组页眉/组页脚节区内或报表页眉/报表页脚节区内添加计算字段对某些字段的一组记录或所有字段进行求和或求平均计算时,这种形式的统计计算一般是对报表字段列的纵向记录数据进行统计,而且要使用Access提供的内置统计函数来完成相应的计算操作。

  5.7 创建子报表

  考点22 在已有的报表中创建子报表

  如果要将子报表链接到主报表上,请确保在进行此过程之前已经正确建立了表关系。

  (l)在“设计”视图中打开希望作为主报表的报表。

  (2)确保已经按下了工具箱中的“控件向导”工具 。

  (3)单击工具箱中的“子窗体/子报表”工具 。

  (4)在报表上单击需要放置子报表的插入点。

  (5)按照向导对话框的提示进行操作。

  在单击了“完成”按钮之后,Access将在报表中添入子报表控件,同时还将创建一个作为子报表显示的单独报表。

  考点23 通过将某个已有报表添加到其他已有报表来创建子报表

  如果要将子报表链接到主报表上,请确保在进行此过程之前已经正确建立了表关系。

  (l)请在“设计”视图中打开希望作为主报表的报表。

  (2)然后确保已经按下了工具箱中的“控件向导”工具

  (3)按[F11]键切换到“数据库”窗口。

  (4)将报表或数据表从“数据库”窗口拖曳到主报表中需要出现子报表的节。

  Access将子报表控件添加到报表中。

  考点24 链接主报表和子报表

  在插入包含与主报表数据具有相关的信息的子报表时,子报表控件必须与主报表相链接。该链接可以确保在子报表中打印的记录与在主报表中打印的记录保持正确的对应关系。

  在通过向导创建子报表,或者直接将报表或数据表由“数据库”窗口拖到其他报表中来创建子报表时,如果满足下列条件,Access将自动使子报表与主报表保持同步。

  (1)已经定义了所选表的关系,或者已经定义了所选查询基础表的关系。

  (2)主报表是基于具有主键的表创建的报表,而子报表则是基于包含与该主键同名并且具有相同或兼容数据类型的字段的表。如果选中了一个或多个查询,这些查询的基础表必须满足相同的条件。

  (3)Access使用子报表控件的“链接主字段”属性和“链接子字段”属性来链接主报表和子报表。如果由于某种原因Access没有链接主报表和子报表,用户可以直接对这些属性进行设置。

  5.8 创建多列报表

  考点25 创建多列报表

  (1)创建报表。

  (2)单击“文件”菜单中的“页面设置”命令。

  (3)在“页面设置”对话框中,单击“列”选项卡。

  (4)在“网格设置”标题下的“列数”编辑框中键入每一页所需的列数。

  (5)在“行间距”对话框中,键入主体节中每个记录之间所需的垂直距离。

  (6)在“列间距”对话框中,键入各列之间所需的距离:

  (7)在“列尺寸”标题下的“宽度”编辑框中键入所需的列宽,例如,3英寸。在“高度”编辑框中键入所需的高度值,即可设置主体节的高度,或者在“设计”视图中直接调整节的高度。

  (8)在“列布局”标题下单击“先列后行”或“先行后列”选项。

  (9)单击“页”选项卡。

  (10)在“打印方向”标题下单击“纵向”或“横向”选项。

  (11)最后单击“确定”按钮。

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

Video Face Swap

Video Face Swap

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

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 use sql if statement How to use sql if statement Apr 09, 2025 pm 06:12 PM

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.

Unable to log in to mysql as root Unable to log in to mysql as root Apr 08, 2025 pm 04:54 PM

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.

What are the benefits of multithreading in c#? What are the benefits of multithreading in c#? Apr 03, 2025 pm 02:51 PM

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.

How to solve the 'Network Error' caused by Vue Axios across domains How to solve the 'Network Error' caused by Vue Axios across domains Apr 07, 2025 pm 10:27 PM

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

How to configure zend for apache How to configure zend for apache Apr 13, 2025 pm 12:57 PM

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.

Summary of phpmyadmin vulnerabilities Summary of phpmyadmin vulnerabilities Apr 10, 2025 pm 10:24 PM

The key to PHPMyAdmin security defense strategy is: 1. Use the latest version of PHPMyAdmin and regularly update PHP and MySQL; 2. Strictly control access rights, use .htaccess or web server access control; 3. Enable strong password and two-factor authentication; 4. Back up the database regularly; 5. Carefully check the configuration files to avoid exposing sensitive information; 6. Use Web Application Firewall (WAF); 7. Carry out security audits. These measures can effectively reduce the security risks caused by PHPMyAdmin due to improper configuration, over-old version or environmental security risks, and ensure the security of the database.

How to monitor Nginx SSL performance on Debian How to monitor Nginx SSL performance on Debian Apr 12, 2025 pm 10:18 PM

This article describes how to effectively monitor the SSL performance of Nginx servers on Debian systems. We will use NginxExporter to export Nginx status data to Prometheus and then visually display it through Grafana. Step 1: Configuring Nginx First, we need to enable the stub_status module in the Nginx configuration file to obtain the status information of Nginx. Add the following snippet in your Nginx configuration file (usually located in /etc/nginx/nginx.conf or its include file): location/nginx_status{stub_status

What is apache server? What is apache server for? What is apache server? What is apache server for? Apr 13, 2025 am 11:57 AM

Apache server is a powerful web server software that acts as a bridge between browsers and website servers. 1. It handles HTTP requests and returns web page content based on requests; 2. Modular design allows extended functions, such as support for SSL encryption and dynamic web pages; 3. Configuration files (such as virtual host configurations) need to be carefully set to avoid security vulnerabilities, and optimize performance parameters, such as thread count and timeout time, in order to build high-performance and secure web applications.

See all articles