sum()访问功能帮助.... [英] sum() access function help....
问题描述
现在我需要选择指定月份并显示total_hr的总和。
例如:
working_date total_hr total_ot_hr
20/2/2007 5 10
21/2/2007 5 10
22/2/2007 5 10
23/2 / 2007 5 10
23/3/2007 5 10
如果我选择febuary它将:
检索total_hr = 20
检索总数total_ot_hr = 40
请帮帮我。
谢谢!
now i need is select that specify month and show that sum of total_hr.
eg:
working_date total_hr total_ot_hr
20/2/2007 5 10
21/2/2007 5 10
22/2/2007 5 10
23/2/2007 5 10
23/3/2007 5 10
if i select febuary it will :
retrieve sum of total_hr = 20
retrieve sum of total_ot_hr = 40
pls help me.
thanks !
推荐答案
现在我需要选择指定月份并显示total_hr的总和。
例如:
working_date total_hr total_ot_hr
20/2/2007 5 10
21/2/2007 5 10
22/2/2007 5 10 br />
23/2/2007 5 10
23/3/2007 5 10
如果我选择febuary它将:
检索total_hr的总和= 20
检索total_ot_hr的总和= 40
请帮助我。
谢谢!
now i need is select that specify month and show that sum of total_hr.
eg:
working_date total_hr total_ot_hr
20/2/2007 5 10
21/2/2007 5 10
22/2/2007 5 10
23/2/2007 5 10
23/3/2007 5 10
if i select febuary it will :
retrieve sum of total_hr = 20
retrieve sum of total_ot_hr = 40
pls help me.
thanks !
我已经改变了。现在得到的错误是:
没有给出一个或多个必需参数的值
如果我没有通过working_date给组,它会弹出一个错误。 />
i already change . now got error is:
No value given for one or more required parameters
if i no give group by working_date it will pop up a error.
i已经改变。现在得到的错误是:
没有给出一个或多个必需参数的值
如果我没有通过working_date给组,它会弹出一个错误。
i already change . now got error is:
No value given for one or more required parameters
if i no give group by working_date it will pop up a error.
由至少一个列名引起的此错误无效。您必须在表中使用完全列名来创建查询。
我有一个小想法来更改您的代码。通过使用ComboBox(OR ListBox)的ItemData属性,您可以节省更多的代码时间
This error cause by at least one column name is invalid. You must use exactly column name in your table to create query.
I have a small idea to change your code. By using ItemData property of ComboBox (OR ListBox) you can save more time to code
这篇关于sum()访问功能帮助....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!