按绝对值排序表格 [英] Sort form by absolute value

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

问题描述

大家好。

这是一个问题。我想按绝对值对表单进行排序。让我们说,如果我有一个名为theSum的字段,我想将表单OrderBy属性设置为Abs([theSum])。如果我使用Advanced filtering\sorting来自记录菜单,它工作得很好,OrderBy proprty变成Abs([theSum])。但是,当我手动或以编程方式执行相同操作时,它无法正常工作。

所以我无法弄清楚这里有什么诀窍以及如何使这个工作。

Hi all.
Here is a problem. I want to sort a form by absolute value. Let''s say, if I have a field named "theSum", I''d like to set the form OrderBy property to "Abs([theSum])". If I use "Advanced filtering\sorting" from "Records" menu, it works just fine, and OrderBy proprty becomes "Abs([theSum])". But when I do the same thing manually or programmatically, it doesn''t work.
So I cannot figure out what is the trick here and how to make this work.

推荐答案

你的代码是什么? '正在使用?
What''s the code you''re using?


如果你在表单后面的查询中设置顺序,它应该可以工作。
If you set the order by in the query behind the form it should work.



您使用的代码是什么?
What''s the code you''re using?



代码非常简单:

The code is very simple:

展开 | 选择 | Wrap | 行号


这篇关于按绝对值排序表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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