Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have the vb.net code:
VB
Private Sub Query3_PreprocessQuery(ByRef query As System.Linq.IQueryable(Of LightSwitchApplication.Stock))
            query = From n In query _
                    Group n By n.Order_Date.year, n.Order_Date.month, n.Product_Name Into g=Group _
                    Select year,month,Product_Name,Quantity = g.sum(Function(n) n.Quantity)
End Sub

My code causes the screen based on Query3 not to load any data...

Please help me, I need to get each product quantites (grouped per month and per product name).

Thanks is advance
Posted
Updated 13-Sep-14 23:08pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900