Home Database Mysql Tutorial ACCESS表达式生成器

ACCESS表达式生成器

Jun 07, 2016 pm 04:23 PM
access expression

+、-、*、/这几个符号就代表数学运算中的加、减、乘、除四种运算符号。使用符号可以使两个表达式强制连接在一起,比如: 数据库使用指南 将返回: 数据库使用指南,也就是将这两个字符串连接在一起,左面的字符串在前面,右面的字符串在后面。 如下图所示。

“+”、“-”、“*”、“/”这几个符号就代表数学运算中的“加”、“减”、“乘”、“除”四种运算符号。使用“&”符号可以使两个表达式强制连接在一起,比如: "数据库"&"使用指南" 将返回: "数据库使用指南",也就是将这两个字符串连接在一起,左面的字符串在前面,右面的字符串在后面。 如下图所示。

“=”、“>”、“”这四个符号分别表示“等于”、“大于”、“小于”、“不等于”,它们都是用来判断某个条件是否为满足,例如: “ =34 ” 表示当某个值等于34时才算满足这个条件。 “"北京" ” 表示当某个值不等于字符串“北京”时才算满足了条件。

  “And”、“Or”、“Not”这三个逻辑运算符是用来连接上面的这些条件表达式的。比如: “ >100 And 100 Or 100 ” 这个表达式则表示只要这个值不大于100 ,这个条件就算满足了。

  还有一个“Like ”, 这个符号又怎么用呢?这个符号常常用在对一个字符型的值进行逻辑判断,是否这个值满足某种格式类型。所以通常“Like”并不单独使用,常常还要跟一些别的符号: “?”表示任何单一字符; “*”表示零个或多个字符; “#”表示任何一个数字; “[字符列表]”表示字符列表中的任何单一字符; “[!字符列表]”表示不在字符列表中的任何单一字符。 我们一起看几个例子, Like "中国?" 则字符串“中国人”、“中国字”都满足这个条件; Like "中国*" 则字符串“中国”、“中国人”、“中国人民银行”这些都满足这个条件; Like "表#" 则字符串“表1”、“表2”都满足这个条件; Like "[北京,上海,广州]" 则只有字符串“北京”、“上海”、“广州”可以满足条件; Like "[!北京,上海,广州]" 则只有字符串“北京”、“上海”、“广州”不能满足条件。

Asc(字符串表达式)
  代表字符串中首字母的字符代码,返回一个 Integer,。 但是 这个字符串表达式不能没有,不然会出错。
  例如: Asc("A") 返回 65 Asc("a") 返回 97 Asc("Apple") 返回 65。

Chr(字符码)
  使用 Chr 函数来返回指定所代表的字符。 0 到 31 之间的数字与标准的非打印 ASCII 代码相同。字符码 的正常范围为 0 – 255。 ChrB 函数作用于包含在 String 中的字节数据。ChrB 总是返回一个单字节,而不是返回一个字符,,一个字符可能是一个或两个字节。ChrW 函数返回包含 Unicode 的 String,若在不支持 Unicode 的平台上,则其功能与 Chr 函数相同。
  例子: Chr(65) 返回 A Chr(97) 返回 a。

DAvg (数值数据字段, 表或查询)
  可用于计算特定记录集中(一个域)一组数的平均值;
  例如: DAvg(产品单价,产品信息表) 返回“产品信息表”中的“产品单价”的平均值。

DCount(数值数据字段, 表或查询)
  可用于确定特定记录集中的记录数(一个域);
  例如: DCount (产品单价,产品信息表) 返回“产品信息表”中的“产品单价”中的记录数。

DLookup(数值数据字段, 表或查询)
  用于从指定记录集(一个域)获取特定字段的值;
  例如: DLookup (产品单价,产品信息表) 返回“产品信息表”中的“产品单价”中的值。

DMin(数值数据字段, 表或查询); DMax(数值数据字段, 表或查询);
  DMin 和 DMax 函数用于确定指定记录集(一个域) 中的最小值和最大值;
  例如:DMin(产品单价,产品信息表) 返回“产品信息表”中的“产品单价”中的最小值。

DSum(数值数据字段, 表或查询)
  用于计算指定记录集(一个域)中的一组值的总和;   
  例如:DMin(产品单价,产品信息表) 返回“产品信息表”中的“产品单价”中的和。

DVar(数值数据字段, 表或查询) DVarP(数值数据字段, 表或查询)
  用于估算特定记录集(一个域)中一组值的方差, DVarp用于计算总体的方差,而 DVar 函数用于计算总体抽样的方差; 如果引用的记录少于两条,DVar 和 DVarP 函数将返回Null,表示不能计算方差。

数值数据字段
  可以是用来标识表或查询中字段的字符串表达式,也可以是执行在域合计函数中计算字段的表达式。在 expr 中可以使用表中字段的名称、窗体上的控件、常量或函数。函数可以是内置的,也可以是用户自定义的,但不能是另一个域合计函数或 SQL 合计函数。 表或查询:用来标识组成域的记录集的字符串表达式。 

DDB(cost, salvage, life, period[, factor])
  指定一笔资产在一特定期间内的折旧,可使用双下落收复平衡方法或其它指定的方法进行计算。 cost 必要。Double 指定资产的初始成本。 salvage 必要。Double.指定使用年限结束时的资产价值。 life 必要。 Double 指定资产可用的可用年限。 period 必要。Double 指定计算资产折旧所用的那一期间。 factor 可选。Variant 指定收复平衡下落时的速度。如果省略的话,缺省值为2(双下落方法)。

FV(rate, nper, pmt[, pv[, type]])
  返回一个 Double,指定未来的定期定额支付且利率固定的年金。
  rate 必要。Double,指定每一期的利率。例如,如果有一笔贷款年百分率 (APR) 为百分之十且按月付款的汽车贷款,则利率为 0.1/12 或 0.0083。
  nper 必要。Integer,指定一笔年金的付款总期限。例如,如果对一笔为期四年的汽车贷款选择按月付款方式,则贷款期限共有 4 * 12(或 48)个付款期。
  pmt 必要。Double 指定每一期的付款金额。付款金额通常包含本金和利息,而且此付款金额在年金的有效期间是不会改变的。
  pv 可选。Variant,指定未来一系列付款(或一次付清款项)的现值。例如,当借钱买一辆汽车时,向贷方所借的金额为未来每月付款给贷方的现值。如果省略的话,缺省值为 0。 type 可选。Variant,指定贷款到期时间。如果贷款在贷款周期结束时到期,请使用 0。如果贷款在周期开始时到期,请使用 1。如果省略的话,缺省值为 0。

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

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.

Interpretation of Botanix: decentralized BTC L2 for network asset management (with interactive tutorial) Interpretation of Botanix: decentralized BTC L2 for network asset management (with interactive tutorial) May 08, 2024 pm 06:40 PM

Yesterday, BotanixLabs announced that it has completed a total of US$11.5 million in financing, with participation from Polychain Capital, Placeholder Capital and others. Financing will be used to build the decentralized EVM equivalent of BTCL2Botanix. Spiderchain combines the ease of use of EVM with the security of Bitcoin. Since the testnet went live in November 2023, there have been more than 200,000 active addresses. Odaily will analyze Botanix’s characteristic mechanism and testnet interaction process in this article. Botanix According to the official definition, Botanix is ​​a decentralized Turing-complete L2EVM built on Bitcoin and consists of two core components: Ethereum Virtual Machine

How to enable remote desktop control in Win11_How to enable remote desktop control in Win11 How to enable remote desktop control in Win11_How to enable remote desktop control in Win11 May 08, 2024 pm 12:19 PM

1. Search for the Control Panel page in the Start menu. 2. Then change the view to Category in the control panel and click System and Security. 3. Find and click the Allowremoteaccess button under System. 4. In the pop-up window, click the Remote system properties column, check the Allow remote connection to this computer button and click OK to save.

How to solve the problem of third-party interface returning 403 in Node.js environment? How to solve the problem of third-party interface returning 403 in Node.js environment? Mar 31, 2025 pm 11:27 PM

Solve the problem of third-party interface returning 403 in Node.js environment. When we use Node.js to call third-party interfaces, we sometimes encounter an error of 403 from the interface returning 403...

Laravel Redis connection sharing: Why does the select method affect other connections? Laravel Redis connection sharing: Why does the select method affect other connections? Apr 01, 2025 am 07:45 AM

The impact of sharing of Redis connections in Laravel framework and select methods When using Laravel framework and Redis, developers may encounter a problem: through configuration...

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 avoid third-party interfaces returning 403 errors in Node environment? How to avoid third-party interfaces returning 403 errors in Node environment? Apr 01, 2025 pm 02:03 PM

How to avoid the third-party interface returning 403 error in the Node environment. When calling the third-party website interface using Node.js, you sometimes encounter the problem of returning 403 error. �...

See all articles