Dear Experts,
The code below has come a long way and i am already proud of it. However i am getting a message "Value cannot be null" of the line that starts with Dim query = From.... I really dont know how to about this .
Thank you
Dim tbl_time As DataTable = ds.Tables("ctime")
Dim tbl_perhour As DataTable = ds.Tables("perhour")
Dim tbl_area As DataTable = ds.Tables("areas")
Dim tbl_basestation As DataTable = ds.Tables("station")
Dim tbl_country As DataTable = ds.Tables("country")
Dim tbl_ded As DataTable = ds.Tables("ded")
Application.DoEvents()
Dim query = From obj_perhour In tbl_perhour.AsEnumerable() Join obj_time In tbl_time.AsEnumerable() _
On obj_perhour.Field(Of Int64)("time_key") Equals obj_time.Field(Of Int64)("time_key") _
Group obj_perhour By customerid = obj_perhour.Field(Of Int64)("msisdn_nsk") _
Into grp = Group _
Select New With _
{ _
.msisdn = customerid,
.rev_onn_tot_nbn = grp.Sum(Function(x) If(x.Field(Of String)("utype") = "UG", x.Field(Of Decimal)("ccost"), 0))
}
And now the error is at line
public static EnumerableRowCollection<Da
{
DataSetUtil.CheckArgumentN
return new EnumerableRowCollection<Da
}
datatableextensions.cs