Skip to content
Advertisement

SUMIFS for vb.net

Good day,

How can I do like sumifs in sql query in vb.net

here is my code. The plan is to take the Sum of column prdInput based on the helper which is txtlot txtPartnumber and txprocess.

I managed to get display the first prdinput the query found but I need the the sum of its since I have multiple txtlot partnumber and process.

Thanks

Edit: I already did the SUM(prdInput) on my query but nothing shows on the textbox.

Advertisement

Answer

You’re almost there. You just needed to alias the column that you performed the sum aggregate on:

It might be easier to see the difference with a formatted query:

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement