求和文本框值? [英] Summing text box values?

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

问题描述

大家早上好!

我的报告有一个名为预约的文本框。其控制源来自查询,因此基于一堆不同的东西,文本框上的值在报表的每个页面上都是不同的。我正在尝试添加另一个文本框,将预留中的所有不同值相加。我尝试过使用= Sum([Reserve]),我尝试在属性中使用运行总和,所有发生的事情都是它在预留的第一页上拉出第一个值;并忽略其余的。完成此任务的最佳方法是什么?我是否试图使用Running Sum属性走错路径?

Good morning everyone!
I have a report that has a text box called "Reserve" whose control source is from a query, so based on a bunch of different things, the value on the text box is different on every page on the report. I am trying to add another text box that adds up all the different values in "Reserve". I''ve tried using "=Sum([Reserve])", I''ve tried using running sums in the properties, and all that ever happens is that it pulls the first value on the first page of "Reserve" and ignores the rest. What is the best way to accomplish this? Am I going down the wrong path trying to use the Running Sum property?

推荐答案

尝试将文本框的名称更改为txtReserve,然后使用
Try changing the name of your textbox to txtReserve and then use
展开 | 选择 | Wrap | 行号


如果我这样做,当我运行报告时会弹出一个框,说输入参数值。 for txtReserve
If I do that, when I run the report a box pops up saying "Enter Parameter Value" for txtReserve


看看这篇文章中的一个链接是否有帮助
home>主题> microsoft access / vba>问题>计算报告中的运行总和>发布#2


:)
See if one of the links in this post helps
home > topics > microsoft access / vba > questions > calculate running sum on report> Post#2

:)


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

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