## LISTBOX

110 pts.
Tags:
VB
VB.NET
VB.NET 2005
VB.NET 2008
I get some data into listbox from base through SQL

The number of data ranges from 8 to 15(b1,b2,b3,b4,b5,b6,b7,b8,......b15) which gives up to 1000 results.

If it 8 data(b1,b2,b3,b4,b5,b6,b7,b8) I want to have only results where  sum of any 7 data of 8 or 7 data of( 9,10,,,,,15) data are some integer (25,26,35,39,41 etc)

In one word I want to add data to listbox only if the following conditions are satisfied

( b1+b2+b3+b4+b5+b6+b7) = (25,26,35,39,41) or

( b1+b2+b3+b4+b5+b6+b8) = (25,26,35,39,41) or

( b1+b2+b3+b4+b5+b7+b8) = (25,26,35,39,41) or

( b1+b2+b3+b4+b6+b7+b8) = (25,26,35,39,41) or

( b1+b2+b3+b5+b6+b7+b8) = (25,26,35,39,41) or

( b1+b2+b4+b5+b6+b7+b8) = (25,26,35,39,41) or

( b1+b3+b4+b5+b6+b7+b8) = (25,26,35,39,41) or

( b2+b3+b4+b5+b6+b7+b8) = (25,26,35,39,41)

Software/Hardware used:
Visual studio 2008

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.