如何从列表视图中数据库中文本框中的总数 [英] How to total the number in text box from a database from list view

查看:82
本文介绍了如何从列表视图中数据库中文本框中的总数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用vb.net和Access数据库从列表视图中的数据库中总计文本框中的数字
例如

名字Stanadrd Fees
周杰伦SSC 6000
乔恩HSC 7000

在文本框中
总计13000

How to total the number in text box from a database from list view using vb.net and Access Database
E.g

Name Stanadrd Fees
Jay SSC 6000
Jon HSC 7000

In textbox
Total 13000

推荐答案

用1000种方法表示.最简单的方法是对该表进行查询,并通过SUM命令返回总数.

Google围绕mdb,查询,总和等内容.
并查看此 http://www.rogersaccesslibrary.com/forum/topic279.html [ ^ ]


干杯!
Well in a 1000 of ways. The easiest one is by doing a query on that table and via SUM command returning the total.

Google a bit around mdb, query, sum etc.
and take a look on this http://www.rogersaccesslibrary.com/forum/topic279.html[^]


Cheers!


作为替代答案,您始终可以使用LINQ来获取总和(如果由于某种原因而无法更改查询).
As an alternative answer, you can always use LINQ to get the sum (if for some reason you are unable to change the query).


这篇关于如何从列表视图中数据库中文本框中的总数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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