hello
i am using it for diaplay massage if selected cartidge color is not color the massage oherwise work when remove the while loop it accept first color of that cartidge.
[CODE=asp]
Prn = VAR_TYPE
Set R= CON.EXECUTE("SE LECT item_type,color FROM printer_master WHERE Prn_Sl_No IN(SELECT Prn_sl_No FROM PRINTER_ISSUED WHERE Prn_Is_No='"&Pr n&"')")
while not R.EOF
if R("color")=var_ clr then
VAR_CLR =R("color")
else
response.Redire ct("massage.asp ")
R.MoveNext
End if
wend
Set CT = CON.EXECUTE("SE LECT item_type FROM printer_master WHERE Prn_Sl_No IN (SELECT Prn_Sl_No FROM PRINTER_ISSUED WHERE Prn_IS_No ='"&Prn&"' ) AND COLOR= '"&VAR_CLR&" ' ")
VAR_TYPE = CT("Item_type" )[/CODE]
i am using it for diaplay massage if selected cartidge color is not color the massage oherwise work when remove the while loop it accept first color of that cartidge.
[CODE=asp]
Prn = VAR_TYPE
Set R= CON.EXECUTE("SE LECT item_type,color FROM printer_master WHERE Prn_Sl_No IN(SELECT Prn_sl_No FROM PRINTER_ISSUED WHERE Prn_Is_No='"&Pr n&"')")
while not R.EOF
if R("color")=var_ clr then
VAR_CLR =R("color")
else
response.Redire ct("massage.asp ")
R.MoveNext
End if
wend
Set CT = CON.EXECUTE("SE LECT item_type FROM printer_master WHERE Prn_Sl_No IN (SELECT Prn_Sl_No FROM PRINTER_ISSUED WHERE Prn_IS_No ='"&Prn&"' ) AND COLOR= '"&VAR_CLR&" ' ")
VAR_TYPE = CT("Item_type" )[/CODE]
Comment