473,379 Members | 1,184 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

How to count all the rows in a column? using microsoft access 2000 database

sword117
i want to count all the rows values in a column,

example:

-- euro --
21
43
44
45



so if i count all i get 153 euro.

i already got this
Expand|Select|Wrap|Line Numbers
  1.      for (int i = 0; i < dataGridView26.RowCount; i++)
  2.                     {
  3.                         label34.Text = i.ToString();
  4.  
  5.                      }
  6.  
help : )
Aug 24 '10 #1
1 1772
Christian Binder
218 Expert 100+
You can address the single rows of the DataGridView with dataGridView26.Rows[i]. This will return a DataGridViewRow with the specified index (i). Now you can call the Cells-property of this row with .Cells["myColumnName"].Value. That will return the cell's value as an object. At least, you just need to cast or convert this object to a numeric variable e.g. int and sum them up.
Aug 25 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Vikrant | last post by:
Hey friends Can someone please suggest that how many recordset can be opened simultaneously for a MS-Access 2000 Database.Does that make any difference if we use ODBC or some other way of...
4
by: ronald balk | last post by:
Dear people, after many efforts I'm putting my hope on you. Last week I changed a lot of forms and reports in an Access 2000 database. It all worked fine and I closed the database without any...
1
by: Ratnest | last post by:
Hi, I'm new to Microsoft Access today, so this is probably a very basic question for all you clever people out there. Anyone know how I copy down a column in Microsoft Access? It doesn't seem...
0
by: Miki T via .NET 247 | last post by:
Hi, I'm trying to "connect" a combobox with a simple Access 2000 database. The objective is to show the elements contained in a column of the DataBase (just a simple Datatable). Should be that...
1
by: sincethe2003 | last post by:
Which OleDbType is correct for DateTime field in Access 2000 database?
1
by: Eitan | last post by:
Hello, What is the easiest way to interface, from MFC, and Access 2000 database? Eitan
1
by: tomguy04 | last post by:
I have a table in an Access 2000 database and a web page. I want to use various pieces of data from this table to drive certain areas of the website, but I do not know how to do this. For...
2
by: hmyers | last post by:
We have converted an Access 97 database to Access 2000 on an XP machine. The application uses a DSN-less connection: adoConn1.Open "DRIVER={iSeries Access ODBC Driver};" & _...
0
by: vaahini | last post by:
i have upgraded our database from microsoft access 97 to microsoft access 2000. While executing i face problem (Unknown database found) in crystal report 7.0. How to solve this problem. the platform...
1
by: geetharamanan | last post by:
i have upgraded our database from microsoft access 97 to microsoft access 2000. While executing i face problem (Unknown database found) in crystal report 7.0. How to solve this problem. the platform...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.