Home Database Mysql Tutorial Access数据库转Excel工作簿

Access数据库转Excel工作簿

Jun 07, 2016 pm 04:22 PM
access excel work log database

学校希望将本校校友录中收集的校友电子邮件地址以Excel文件的形式提交上去,以方便群发邀请各位校友参加八十周年校庆。学校校友录数据库是Access的MDB格式,其中包含多个表,校友地址在单独的一个Student表中。这实际上就是要将Access表转换为Excel工作表的

   学校希望将本校校友录中收集的校友电子邮件地址以Excel文件的形式提交上去,以方便群发邀请各位校友参加八十周年校庆。学校校友录数据库是Access的MDB格式,其中包含多个表,校友地址在单独的一个“Student”表中。这实际上就是要将Access表转换为Excel工作表的形式。

  下面我们介绍两种不同的方法完成Access数据库与Excel工作簿转换的工作。

  一、在Access数据库中直接导出

  用Access打开校友录的数据库文件,,选中包含校友信息的“student”表,然后单击鼠标右键并选择“导出”命令(如图1)。

Access数据库转Excel工作簿  三联

  在打开的对话框中将“保存类型”改成“Microsoft Excel 97-2003 (*.XLS),然后输入文件名称,单击“导出”按钮,稍后就得到了一个标准的Excel工作簿文件。

  注意:在Access程序中还可以轻松将数据库表导出为VF的DBF文件、Paradox的数据库文件、文本文件等多种格式以供调用。

  用Excel打开导出得到的文件,将不需要的列删除,只保留姓名和E-mail地址所在的两列(如图2),随后保存,最后将此文件上传给领导审阅即可。

Access数据库转Excel工作簿

  二、用AccessToExcel来帮忙

  如果对Access数据库操作不熟悉,没关系,可以使用AccessToExcel这款免费软件来帮忙。AccessToExcel,顾名思义,就是将Access数据库转换为Excel工作簿。

  安装并运行Access ToExcel,单击窗口左上角“导出Access数据库文件”左边的Access图标,在打开的对话框中选择要转换的MDB文件,打开该数据库文件。

  提醒:该软件附带提供获取Access数据库密码的功能,但算法不够全面,如果不能获取要打开的数据库密码会弹出提示,请在“Access数据库密码”下手动输入。

  单击右侧“数据库操作”标签下的“获取数据库”按钮,稍后将在“数据表名称列表”下显示该数据库中各表的名称(如图3)。

Access数据库转Excel工作簿

  从列表中选中要转换的那个表,单击“获取字段列表”按钮,在窗口左下方便列出了表中的各字段,去除不需要的字段前的对勾,然后点击“浏览数据”按钮,可检验是否为最终需要的项目(如图4)。

Access数据库转Excel工作簿

  切换到“导出数据”标签下,单击“选择导出文件”按钮,输入最终要导出的EXCEL文件名。

  单击“导出”按钮,在窗口下方会显示导出进度,完成后在弹出的对话框中点击“是”立即保存。这样便得到了需要的Excel文件。

  用Excel打开导出的文件,可发现其中只有选中的字段。和直接导出相比,使用AceeToExcel导出的表前部会增加一个标题,如果不需要可在Excel中将其去掉。

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)

MySQL: Simple Concepts for Easy Learning MySQL: Simple Concepts for Easy Learning Apr 10, 2025 am 09:29 AM

MySQL is an open source relational database management system. 1) Create database and tables: Use the CREATEDATABASE and CREATETABLE commands. 2) Basic operations: INSERT, UPDATE, DELETE and SELECT. 3) Advanced operations: JOIN, subquery and transaction processing. 4) Debugging skills: Check syntax, data type and permissions. 5) Optimization suggestions: Use indexes, avoid SELECT* and use transactions.

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 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.

MySQL: An Introduction to the World's Most Popular Database MySQL: An Introduction to the World's Most Popular Database Apr 12, 2025 am 12:18 AM

MySQL is an open source relational database management system, mainly used to store and retrieve data quickly and reliably. Its working principle includes client requests, query resolution, execution of queries and return results. Examples of usage include creating tables, inserting and querying data, and advanced features such as JOIN operations. Common errors involve SQL syntax, data types, and permissions, and optimization suggestions include the use of indexes, optimized queries, and partitioning of tables.

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.

Why Use MySQL? Benefits and Advantages Why Use MySQL? Benefits and Advantages Apr 12, 2025 am 12:17 AM

MySQL is chosen for its performance, reliability, ease of use, and community support. 1.MySQL provides efficient data storage and retrieval functions, supporting multiple data types and advanced query operations. 2. Adopt client-server architecture and multiple storage engines to support transaction and query optimization. 3. Easy to use, supports a variety of operating systems and programming languages. 4. Have strong community support and provide rich resources and solutions.

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 use Debian Apache logs to improve website performance How to use Debian Apache logs to improve website performance Apr 12, 2025 pm 11:36 PM

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.

See all articles