說不定你的陣列變數DB_type內的元素值說不定只有一個符合你的條件
而你又沒預設最後ELSE也就是都不符合的結果那當然只會出現一個值
妳不妨先印出陣列元素值來確認一下,或是要不要改成這樣試試看
For x=0 to Ubound(DB_type)
tmp=DB_type(x)
if tmp="PM表單" then
response.Write "確定"&DB_type(x)
elseif tmp="Continue_Fail_表單" then
response.Write "確定"&DB_type(x)
elseif tmp="機台異常_表單" then
response.Write "確定"&DB_type(x)
elseif tmp="生產異常_表單" then
response.Write "確定"&DB_type(x)
elseif tmp="針痕異常_表單" then
response.Write "確定"&DB_type(x)
elseif tmp="Leader_Command_表單" then
response.Write "確定"&DB_type(x)
elseif tmp="支援事項_表單" then
response.Write "確定"&DB_type(x)
Else
response.Write "錯誤!!"
end if
next