Question: The CompanyDataSet contains a table named Sales and a field named Income. Which of the following loops will accumulate the values in the Income field?

The CompanyDataSet contains a table named Sales and a field named Income. Which of the following loops will accumulate the values in the Income field?
a. For Each row As CompanyDataSet.Sales.Row
In CompanyDataSet.Sales.Rows
Sales.Row += row.Income
Next row
b. For Each row As CompanyDataSet.Sales.Row
In CompanyDataSet.Sales.Rows
dblTotal += row.Income
Next row
c. For Each row As CompanyDataSet.Sales.Row
In CompanyDataSet.Rows
dblTotal += row.Income
Next row
d. For Each row As CompanyDataSet.Sales
In CompanyDataSet.Sales.Rows
dblTotal += row.Income
Next row

Step by Step Solution

3.32 Rating (164 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

b For Each row As C... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (2 attachments)

PDF file Icon

1814_60b8c1228461e_755726.pdf

180 KBs PDF File

Word file Icon

1814_60b8c1228461e_755726.docx

120 KBs Word File

Students Have Also Explored These Related Programming Microsoft Visual Basic Questions!