How to use Count,Calculate sum(), Caluculate Max() in VB.NET?

Hi SEAN,

Well.

MAHEY2000 also me only.Because of password problem, I created another one a/c.

In VFP9 we can use the followings and How to do it with vb.net?

COUNT FOR(wk_code='Inj') TO abcd5
CALCULATE SUM(total_hr) FOR (emp_id=epidi1) TO tot1
CALCULATE MAX(en_date) FOR((emp_id=epidi1) TO etydt

Here wk_code,total_hr,en_date,emp_id are field names.

--------------------------------------------
In Vb.Net

Dim dbnd1 As New BindingSource
dbnd1.DataSource = DTB4 'Datatable for SEC-ID's


Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion