使未绑定文本框默认为零 [英] Make Unbound text box to default zero

查看:66
本文介绍了使未绑定文本框默认为零的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。


我有一份报告,有时当我将两列合计时


例如。 Credit-Debit


在报表上,它可能会生成0.00,在打印预览时,它会变为空白。


我该怎么做才能确保我打印预览的报告显示0.00的相同记录而不是空白。


谢谢。

解决方案

< blockquote>如果Credit或Debit可以为Null,请将文本框的ControlSource属性设置为:
$


= Nz([Credit],0)-Nz( [借记],0)



将文本框格式化为您希望将值显示为的任何货币格式。


Hi.

I have a report that sometimes when I sum two columns together

e.g. Credit-Debit

On the report, it might generate it has 0.00 while on print preview, it goes blank.

What can I do to make sure that the report I print preview shows that same record of 0.00 instead of going blank.

Thanks.

解决方案

If either the Credit or Debit can be Null, set the ControlSource property of the text box to:

=Nz([Credit],0)-Nz([Debit],0)

Format the text box to whatever currency format you want the value to be presented as.


这篇关于使未绑定文本框默认为零的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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