match value to available values
I have a list of available electronic componants each having a specific value. I would like to do three things.
1) I want to enter a value in a textbox and a way to verify if the desired value is available and if not. Is there a combination of two or three componants that equal my desired value? It's possible to use the same value twice if need be.
Let me clarify.
Let's say X = desired value and a, b, c = available componants; then X=a or X=b ... or X=a+a or X=a+b or X=a+a+c . . .etc
2) I would like the code to show the values of a,b, c used in the equation in a label
3) Upon demand, permit a tolerance of the desired value of plus or minus 2. For example X=a or X-2=a or X+2=a... :confused:
My thread is similar to:
Http://www.vbforums.com/showthread.p...hreadid=194155
with the exception of showing values and selecting tolerances.
Pleeze help guys! :eek: