Home Database Mysql Tutorial Access入门教程 12.3 使用报表向导建立报表

Access入门教程 12.3 使用报表向导建立报表

Jun 07, 2016 pm 03:31 PM
access use Getting Started Tutorial Establish Report

首先双击数据库窗口中创建方式栏中的“使用向导创建报表”项,这时在屏幕上会弹出一个对话框“报表向导”,如下图。这个窗口中要求我们确定“报表”上使用哪些字段,这和我们使用“查询向导”和“窗体向导”差不多。 现在我们在表/查询下面的下拉框中选择相


 

首先双击数据库窗口中创建方式栏中的“使用向导创建报表”项,这时在屏幕上会弹出一个对话框“报表向导”,如下图。这个窗口中要求我们确定“报表”上使用哪些字段,这和我们使用“查询向导”和“窗体向导”差不多。

Access入门教程 12.3 使用报表向导建立报表

现在我们在表/查询下面的下拉框中选择相应的表或查询,还是以“客户信息数据库”为例,首先单击下拉框右面的向下按钮,然后在弹出的下拉选单中选择表“订单信息查询”。左边的“可用字段”列表框中有了几个字段,现在我们选择要将哪些字段放到“报表”中去。 右边列表框就是用来显示我们要放到“报表”中去的“选定的字段”。而在这两个表中的四个按钮,则分别是将左面列表框中的一个或全部字段移动到右面的列表框中、将右面列表框中的一个或全部字段移动到左面的列表框中。而且在右面列表框中的字段的顺序也将反映到“报表”中字段的顺序中去,排在右面列表框前面的字段将在“报表”中靠左,而在列表框中靠后的字段在“报表”中将靠右,当把这些完成以后,单击“下一步”按钮就可以了。

在这一步中,Access问我们是否要对“报表”添加分组级别,如下图。这个分组级别就是“报表”在打印的时候,各个字段是否是按照阶梯的方式排列,就像这样。分几组,就有几级台阶。

Access入门教程 12.3 使用报表向导建立报表

当“报表”有多组分组级别时,我们可以利用两个优先级按钮来调整各个分组级别间的优先关系,排在最上面的级别最优先。 为了了解“分组选项”这个按钮是做什么用的,我们先将字段“序号”添加为一个分组级别。这时,这个按钮“分组选项”就由刚才灰白色不可用状态变成可用的了。单击这个按钮,这时会弹出一个对话框,如下图。在这个对话框中我们看到原来这儿可以用来调整组级字段的分组间隔。

Access入门教程 12.3 使用报表向导建立报表

 

如果不想在“报表”中分组,只要将这个组级字段取消就可以了。现在我们单击“下一步”按钮进入下一步。 这一步要我们确定记录所用的排序所用的次序,如下图,即确定“报表”中各个记录按照什么顺序从“报表”的上面排到下面。如果我们按照序号字段的升序方式进行排序,就会发现在“报表”中,每个人的记录会按序号字段从小到大或从大到小进行排列。 完成这些,我们就可以单击“下一步”按钮了。

对于这个数据库,用序号这个字段进行排序已经可以了,但如果我要用“订货公司”进行排序,“订货公司”又有重复的话,就需要使用第二级的排序了。这时你看用几个字段进行排序就很必要了。

在这一步要我们确定“报表”的布局方式。 通过选择“布局”中的方式,可以确定数据是按照什么形式来进行布局的,并且可以在对话框右面的视图中看到我们选择的布局形式是什么样的。选择“表格”方式,这样所用记录都可以显示在一页纸上了,这样就很容易在一张纸上显示别人所有的信息了。如下图。

Access入门教程 12.3 使用报表向导建立报表

如果“订单信息查询”上的信息过长,在一页纸上纵向打印就打不下,可以将纸横着来打,即将方向选项选为“横向”。

在这一步中还有一个选项“调整字段宽度使所有字段都能显示在一页中”,为了保证将记录中的每行都打印在一行而不换行,这项常常都是选定的。做完这些,单击“下一步”按钮,出现一个对话框,在这个对话框中,右面列表框中的选项是“报表”可以使用的样式,而左边的图框则把这种样式的形式显示给我们,以便我们选择。

单击“下一步”按钮,这一步是“报表”向导的最后一步了。 现在要给这个“报表”指定标题,这个标题将会打印在你的“报表”的左上角。

如果想在在单击“完成”按钮以后直接看到“报表”的打印预览,则选择“预览报表”;如果想先看到“报表”的设计视图,则选择“修改报表设计”,就可以在设计视图中修改“报表”了。 然后单击“完成”按钮就可以了。



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)

Hot Topics

Java Tutorial
1664
14
PHP Tutorial
1268
29
C# Tutorial
1243
24
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.

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.

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.

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.

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

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.

Using Dicr/Yii2-Google to integrate Google API in YII2 Using Dicr/Yii2-Google to integrate Google API in YII2 Apr 18, 2025 am 11:54 AM

VprocesserazrabotkiveB-enclosed, Мнепришлостольностьсясзадачейтерациигооглапидляпапакробоглесхетсigootrive. LEAVALLYSUMBALLANCEFRIABLANCEFAUMDOPTOMATIFICATION, ČtookazaLovnetakProsto, Kakaožidal.Posenesko

See all articles