访问2016 [英] access 2016

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

问题描述

我正在尝试在子窗体中的三个文本框中添加值,这些子窗体的控制源为"列中数字的总和"。当列中有数字时,我得到正确的答案。但是当一个子表单没有任何值时,我就会得到一个#Type!我的最终文本框中出错。我尝试使用if命令将文本框中的空值转换为零。但是效果不好。

I am trying to add values in three text boxes in there subforms which have a control source of "sum of the numbers in a column". when there are numbers in the column I get an correct answer. But when one subform does not have any value I get a #Type! error in my final text box. I tried to use if command to convert a null value in the text boxes to zero. but it did not work out well.

推荐答案

请你发布你的代码吗?使用?谢谢。您是否尝试过使用Nz()函数?

Can you please post the code you're using? Thanks. Have you tried using the Nz() function?


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

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