botyok
10-14-2008, 09:21 PM
Hello,
Need help in coding this problem in microsoft access.
I have a table with values 1,2,6,7,9,11,15. These values are taken from between 1 to 50, no the same value on the table.
What i would like to implement is from a given total, the code pick 4 numbers and give the possible combination with the same total of the given total. No number should be picked repeatedly in the 4 numbers. No repeat of combinations ex. 6,9,11,7 = 33 11,9,6,7 = 33
ex.
value of given total = 33
possible combinations (numbers in any position): No number should be picked repeatedly in the 4 numbers. No repeat of combinations ex. 6,9,11,7 = 33 11,9,6,7 = 33 7,9,11,6 = 33 6,11,7,9 = 33
correct way is:
6,9,11,7 = 33
1,6,11,15 = 33
and so on...
Any help is highly appreciated.
botyok
Need help in coding this problem in microsoft access.
I have a table with values 1,2,6,7,9,11,15. These values are taken from between 1 to 50, no the same value on the table.
What i would like to implement is from a given total, the code pick 4 numbers and give the possible combination with the same total of the given total. No number should be picked repeatedly in the 4 numbers. No repeat of combinations ex. 6,9,11,7 = 33 11,9,6,7 = 33
ex.
value of given total = 33
possible combinations (numbers in any position): No number should be picked repeatedly in the 4 numbers. No repeat of combinations ex. 6,9,11,7 = 33 11,9,6,7 = 33 7,9,11,6 = 33 6,11,7,9 = 33
correct way is:
6,9,11,7 = 33
1,6,11,15 = 33
and so on...
Any help is highly appreciated.
botyok