如何总结无限文本答案的数量? [英] How do I sum the number of infinite text answers?

查看:58
本文介绍了如何总结无限文本答案的数量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我被困在这一个。为了说明我的观点,我将使用汽车作为我的

示例。


我有一个文本字段,用户可以输入他们想要的任何内容。这个

特定字段包含对你拥有什么型号汽车?这个问题的回复。

由于那里有几乎无限数量的车型,我有没有

创建限制下拉列表或列表框的意图。


因此,用户可以输入Mustang中的任何内容。到RX 330到Countach。

此信息会进入按位置排序的报告。这个

会产生一个位于该国特定区域的司机列表

显示他们驾驶的每个车型。


什么我需要做的是计算有多少回复等于Mustang,RX 330等等。和

" Countach"了解可以有无数的回复。


任何帮助?


问候,


BH


(请记住,我正在使用汽车作为一个例子,理论上可以限制

到列表。在我的数据库中,真的有一个无限数量的答案。)


-

通过AccessMonster.com发布消息
http://www.accessmonster.com/Uwe/For...ccess/200807/ 1

Hello,

I am stuck on this one. To illustrate my point, I will use cars as my
example.

I have a text field for which users can enter in anything they want. This
particular field holds the reply to the question "What model car do you own?"
Since there are nearly infinite number of vehicle models out there, I have no
intention of creating a restricted drop down or list box.

Therefore, users can input anything from "Mustang" to "RX 330" to "Countach."
This information pulls into a report that is sorted by location. This
results in a list of drivers located in a particular area of the country
showing each model they drive.

What I need to do is count how many replies equal "Mustang", "RX 330" and
"Countach" understanding that there can be an infinite number of replies.

Any help?

Regards,

BH

(Remember, I am using cars as an example which theorotically can be limited
to a list. In my database, there truly is an unlimited number of answers.)

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200807/1

推荐答案

尝试


SELECT CarModels.CarModel,Count( CarModels.CarModel,)AS CountOfCarModel

来自CarModels

GROUP BY CarModels.CarModel;


它应该给你想要的东西,但毫无意义。即使使用你的例子一个

Countach将是一辆完全不同于兰博基尼Countach的车和

再次与lamborgini Countach不同。 1车 - 3个答案。所以你可以手动编辑结果,或者首先在

中用2或3个组合框限制选择。


Phil


" bhipwell via AccessMonster.com" < u30281 @ uwewrote in message

news:877ee5a6ccedb @ uwe ...
Try

SELECT CarModels.CarModel, Count(CarModels.CarModel,) AS CountOfCarModel
FROM CarModels
GROUP BY CarModels.CarModel;

It should give yo what you want, but meaningless. Even using your example a
Countach will be a totally different car to Lamborghini Countach and
different again from lamborgini Countach. 1 Car - 3 answers. So you could
edit the results manually, or limit the choice with 2 or 3 combo boxes in
the first place.

Phil

"bhipwell via AccessMonster.com" <u30281@uwewrote in message
news:877ee5a6ccedb@uwe...

你好,


我被困在这一个。为了说明我的观点,我将使用汽车作为我的

示例。


我有一个文本字段,用户可以输入他们想要的任何内容。这个

特定字段包含对问题的答复你有什么样的车型?b $ b拥有?

因为数量几乎无穷大那里有车型,我有

没有

打算创建限制下拉或列表框的意图。


因此,用户可以输入Mustang中的任何内容。到RX 330

Countach。


此信息会进入按位置排序的报告。这个

会产生一个位于该国特定区域的司机列表

显示他们驾驶的每个车型。


什么我需要做的是计算有多少回复等于Mustang,RX 330等等。和

" Countach"了解可以有无数的回复。


任何帮助?


问候,


BH


(请记住,我正在使用汽车作为一个例子,理论上可以

限制

到列表中。在我的数据库中,确实有无限数量的

答案。)


-

通过AccessMonster.com发布消息
http:// www.accessmonster.com/Uwe/For...ccess/200807/1



Hi Phil,

感谢您的回复。对于一辆车有3个答案,这个

实际上不会成为数据库中的问题,因为管理员将为每个客户定义变量。
。 br />

基本上,数据库跟踪员工福利计划。一位客户可能会提供三份健康计划。健康计划可以被命名为无限数量

的方式。但是,

特定客户可以使用三个预定名称。


我的报告现在显示所有员工的清单以及他们的健康计划我正在寻找的是一种方式告诉我X员工的数量是多少?b $ B计划A,X计划B和X计划C.


我把你的公式放在报告的一个文本框中没有成功,因为它是b / b
要求参数值。

想法?帮助?


B


-

留言通过 http://www.accessmonster.com

Hi Phil,

Thanks for your reply. In regards to having 3 answers for one car, this
actually won''t be an issue within the database since the administrator will
be defining the variables per client.

Basically, the database tracks employee benefit programs. One client may
offer three health plans. The health plans can be named an infinite number
of ways. However, one three pre-determined names would be available for the
particular client.

My report now shows a list of all employees and the health plan they are on.
What I am looking for is a way to tell me that X number of employees are on
plan A, X on plan B and X on plan C.

I put your formula in a text box on the report with no success as it is
asking for a parameter value.

Thoughts? Help?

B

--
Message posted via http://www.accessmonster.com


我的错,


我将代码添加到我的SQL结尾:

TBLEmployeeInfo.EeHEALPlan,Count(TBLEmployeeInfo.EeHEALPlan,)AS

来自TBLEmployeeInfo GROUP的CountofEeHEALPlan来自TBLEmployeeInfo.EeHEALPlan;


我收到错误:查询表达式中出现语法错误


B


-

留言通过 http://www.accessmonster.com

My fault,

I added the code to the end of my SQL:

TBLEmployeeInfo.EeHEALPlan, Count(TBLEmployeeInfo.EeHEALPlan,)AS
CountofEeHEALPlan FROM TBLEmployeeInfo GROUP BY TBLEmployeeInfo.EeHEALPlan;

I get the error: Syntax error in query expression

B

--
Message posted via http://www.accessmonster.com


这篇关于如何总结无限文本答案的数量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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