查询中的MAX值 [英] MAX value in query

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

问题描述

在查询中找到3-6个字段PER RECORD的最大值的公式或代码是什么。我有个别供应商为许多产品提供价格。每个产品都是新记录。我希望我的查询设计中的计算表达式是最佳成本。最佳成本将是3-6家供应商的最大价值。我想过使用iif(),但我觉得应该有更好的方法。有什么帮助?

解决方案

我知道的2个选项:

1. VV复杂IIF()。

2.在一个模块中调用公共函数,该模块用于查找输入的最大参数。


是否没有MAX IN(字段列表)命令?


我很确定没有:(。

我们上周在这里有一个关于获得最多三个字段的线程,最后由IIF()处理。 / BLOCKQUOTE>

What might be the formula or code to find the max value of 3-6 fields PER RECORD in a query. I have individual vendors offering prices for a number of products. Each product is a new record. I would like a calculated expression in my query design to be BEST COST. BEST COST would be the max value of the 3-6 vendors. I thought of using iif() but I felt there should be better way. Any help?

解决方案

2 options I know of :
1. V V complicated IIF().
2. Call Public Function in a module designed to find max of parameters entered.


Is there no MAX IN (list of fields) command?


I''m pretty sure there''s not :(.
We had a thread in here last week about getting the max of three fields and that was handled by IIF() in the end.


这篇关于查询中的MAX值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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