使null成为更高的数字 [英] Making null a higher number

查看:70
本文介绍了使null成为更高的数字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,


我想在一个有1到10个数字的表格中进行排序。那里也有很多空值。当我将它们从1到10排序时,空值是第一个。有没有办法让空值在10之后出现?


让我知道让它等于11的代码或者如何让它最后显示它们。


谢谢,

Brian Smith

解决方案

Nz(Value,ValueIfNull)


所以:

展开 | 选择 | Wrap | 行号


输入该代码后,出现编译错误:预期:=消息这是我在代码中输入的内容:


私有子优先级_点击()

Nz(优先级,99)

结束Sub


我需要做一些不同的事情吗?请告诉我。


Brian Smith


您必须使用查询来转换和排序记录,并将其用作记录源形式。

Hello,

I am tring to do a sort in a form where there are numbers from 1 to 10. There is also a lot of nulls in there as well. When I sort them from 1 to 10, the nulls are first. Is there a way to make the nulls come after 10?

Let me know either the code to make it equal like 11 or how to make it show them last.

Thanks,

Brian Smith

解决方案

Nz(Value, ValueIfNull)

So:

Expand|Select|Wrap|Line Numbers


After I entered that code, I get a "compile error: Expected:=" Message This is what I put in the code as:

Private Sub Priority_Click()
Nz (Priority,99)
End Sub

Do I need to do something diffrent? Let me know.

Brian Smith


You have to use a query to convert and order the records and use that as the record source for the form.


这篇关于使null成为更高的数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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