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)

Please help

 

 

 



Software/Hardware used:
Visual studio 2008

Answer Wiki

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

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following