How to use an Access query

Source: Internet
Author: User

Assuming that there is a "Fleet transport" table, there is a "driver, cargo category, gross weight, tare" field. We will use it as the raw data, through the query to the data calculation and statistics.

Driver Type of goods Gross weight Tare
Li Dafang Other 75.00 25.00
Zhao Beautiful Other 75.00 25.00
Zhang Cute Other 150.00 50.00
Zhao Beautiful Fine Powder 19.70 5.40
Zhang Cute Fine Powder 20.70 5.40
Zhang Cute Fine Powder 20.60 5.40
Zhang Cute Ore 19.60 5.40
Zhang Cute Fine Powder 20.60 5.40
Zhang Cute Fine Powder 21.10 5.40
Zhang Cute Ore 21.20 5.40
Li Dafang Fine Powder 17.40 5.40
Zhao Beautiful Waste Stone 120.00 40.00
Zhao Beautiful Other 15.00 5.00
Li Dafang Waste Stone 105.00 35.00
Zhang Cute Waste Stone 105.00 35.00
Zhao Beautiful Waste Stone 105.00 35.00

1. Create a calculated field with a select query

Build a Select query, add the "Fleet Transport" table, and drag all of its fields to the design grid. As shown in figure, as long as the "net weight: Gross weight-tare" is filled in the blank column, the system automatically adds "[]" to the "gross weight" and "tare" to indicate that they are fields. Save this query as "Fleet transport inquiries".

The following table is the newly produced Fleet Transport query, the net weight is calculated automatically:

Driver Type of goods Gross weight Tare Net
Li Dafang Other 75.00 25.00 50.00
Li Dafang Other 135.00 45.00 90.00
Zhao Beautiful Other 75.00 25.00 50.00
Zhang Cute Other 150.00 50.00 100.00
Zhao Beautiful Fine Powder 19.70 5.40 14.30
Zhang Cute Fine Powder 20.70 5.40 15.30
Zhang Cute Fine Powder 20.60 5.40 15.20
Zhang Cute Ore 19.60 5.40 14.20
Zhang Cute Fine Powder 20.60 5.40 15.20
Zhang Cute Fine Powder 21.10 5.40 15.70
Zhang Cute Ore 21.20 5.40 15.80
Li Dafang Fine Powder 17.40 5.40 12.00
Zhao Beautiful Waste Stone 120.00 40.00 80.00
Zhao Beautiful Other 15.00 5.00 10.00
Li Dafang Waste Stone 105.00 35.00 70.00
Zhang Cute Waste Stone 105.00 35.00 70.00
Zhao Beautiful Waste Stone 105.00 35.00 70.00

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.