Advertisement
| 09.30.2008 at 02:07PM PDT, ID: 23776198 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: |
Dim var_item, var_competitor, bool_found
strMenu="Select a Number:" & vbCrLf &_
"1 - Competitor1" & vbCtLf &_
"2 - Competitor2" & vbCtLf &_
"3 - Competitor3" & vbCtLf &_
"4 - Competitor4" & vbCtLf &_
"5 - Competitor5" & vbCtLf &_
"6 - Competitor6" & vbCtLf &_
"7 - Competitor7"
rc=InputBox(strMenu,"Menu",1)
if isNumeric(rc) then
select case rc
case 1
var_competitor="Competitor1"
case 2
var_competitor="Competitor2"
case 3
var_competitor="Competitor3"
case 4
var_competitor="Competitor4"
case 5
var_competitor="Competitor5"
case 6
var_competitor="Competitor6"
case 7
var_competitor="Competitor7"
case else
wscript.echo "Please select a valid competitor"
end select
else
wscript.echo "Invalid Option. Please select a number [1-7]"
end if
var_item=InputBox("Enter a <MyCompanyName> Part Number:")
' the script needs to know which column to look in for the <MyCompanyName> Part Number
if (bool_found=instr(1,var_item,"RN"))=1 then
'check the Access database in RNEC (MyCompanyPartNumberType1) column for var_item and return CompetitorPartNumber for corresponding var_competitor in CompetitorName column
'if not found, return NULL
else if (bool_found=instr(1,var_item,"RBB"))=1 then
'check the Access database in RNCLBB (MyCompanyPartNumberType2) column for var_item and return CompetitorPartNumber for corresponding var_competitor in CompetitorName column
'if not found, return NULL
else if (bool_found=instr(1,var_item,"RB"))=1
'check the Access database in RNCLB (MyCompanyPartNumberType3) column for var_item and return CompetitorPartNumber for corresponding var_competitor in CompetitorName column
'if not found, return NULL
else if (bool_found=instr(1,var_item,"RWW"))=1
'check the Access database in RNWW (MyCompanyPartNumberType4) column for var_item and return CompetitorPartNumber for corresponding var_competitor in CompetitorName column
'if not found, return NULL
else if (bool_found=instr(1,var_item,"RW"))=1
'check the Access database in RNW (MyCompanyPartNumberType5) column for var_item and return CompetitorPartNumber for corresponding var_competitor in CompetitorName column
'if not found, return NULL
else if (bool_found=instr(1,var_item,"UB"))=1
'check the Access database in RNUBDV (MyCompanyPartNumberType6) column for var_item and return CompetitorPartNumber for corresponding var_competitor in CompetitorName column
'if not found, return NULL
else wscript.echo "Invalid part number. Part must begin with RN, RB, RW or UB"
end if
|
Advertisement