计算字段中的单词 [英] Count Words in a Field

查看:60
本文介绍了计算字段中的单词的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用MS Access计算数据字段中的字数

Is it possible to use MS Access to count the number of words
in a data field?

推荐答案


是否可以使用MS Access计算数据字段中的单词数量


Is it possible to use MS Access to count the number of words
in a data field?



我不知道如何编写一个函数来逐字处理数据。

I don''t know of a way short of writing a function to process through the data character by character.


好的,

尝试使用len函数来获取字符串的长度然后使用重复的instr函数来查找字符串中的所有空格,这将给你一个正确的字数


southoz
Good ay ,
try using the len function to get the length of the string then use a repeating instr function to find all the spaces in the string, that would give u a proper word count

southoz


此函数计算文本中的单词数。请注意,它将带连字符的单词视为两个单词。如果您不想这样,请从select函数中删除连字符。

This function counts the number of words in text. Note it treats hyphenated words as two words. If you don''t want this remove the hyphen case from the select function.

展开 | 选择 | Wrap | 行号


这篇关于计算字段中的单词的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆