总计五个领域 [英] sum five fields

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

问题描述

我在同一领域有两项任务。首先,我需要一个表单上的字段来总结表单上的其他5个字段...


该字段命名为百分比。我要总结的五个领域是理解,质量,沟通,完成,准备,参与。


我不断收到编译错误。我正在尝试这个焦点。有人能告诉我怎么做吗?


第二步是拿出金额并使用if else然后将总和转换为数字等级......

I have two tasks for the same field. First, I need a field on a form to sum 5 other fields on the form...

The field is named percent. The five fields I want to sum are understanding, quality, communication, completion, preparation, participation.

I keep getting a compilation error. I am trying this on gotfocus. Can someone tell me how I would do this?

The second step is to take the sum and use if else then to convert the sum to a number grade...

展开 | 选择 | Wrap | 行号

推荐答案

您需要发布用于执行此操作的代码,以便我们为您提供帮助。在没有看到代码的情况下很难分析你的问题。


-AJ
You will need to post the code you are using to do this, for us to help you. It is hard to analyze your issue without seeing the code.

-AJ


好的,刚拿到它。我以为我需要使用sum,但因为我使用的是不同的字段,所以我得到了错误。将其切换为百分比= [field1] + [field2]等工作。我现在定了......我会看看我是否会被其他人困住!

谢谢!
Okay, just got it. was thinking I needed to use sum, but because I was using different fields I was getting the error. switched it to percent=[field1]+[field2] etc works. I am set for now... I will see if I get stuck with the rest!
thanks !


好的,我可以使用else / elseif在与上面相同的代码集中,或者我应该为sum创建一个字段,然后为else if语句创建一个新字段?我尝试将其添加到同一个并收到错误...
Okay, can I then use the else/elseif in the same set of code as the one above or should I create a field for the sum and then a new one for the else if statement? I tried adding it to the same and get an error...
展开 | 选择 | Wrap | 行号


这篇关于总计五个领域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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