Sorry, can anybody tell me how to stop the code from executing after the IF condition is false?
If (qua="Q1") then
eng = trim(rs("Q2Eng"))
pro = trim(rs("Q2Pro"))
aEng = trim(rs("Q1Eng"))
aPro = trim(rs("Q1Pro"))
<!--If ((eng="0") OR (pro="0")) then
msgbox = "You have no diskspace to request"
End If-->
End If
If (qua="Q1") then
sql = "UPDATE DF_Year SET Q1Eng = '" & addEng & "', Q1Pro = '" & addPro & "', Q2Eng = '" & minusEng & "', Q2Pro = '" & minusPro & "' WHERE Forecast_ID = '" & ID & "' AND Fo_Year = '" & myYear & "'"
set rs = strconn.Execute(sql)
End If
How can i stop the coding from updating my database if either eng or pro = "0" ?
If (qua="Q1") then
eng = trim(rs("Q2Eng"))
pro = trim(rs("Q2Pro"))
aEng = trim(rs("Q1Eng"))
aPro = trim(rs("Q1Pro"))
<!--If ((eng="0") OR (pro="0")) then
msgbox = "You have no diskspace to request"
End If-->
End If
If (qua="Q1") then
sql = "UPDATE DF_Year SET Q1Eng = '" & addEng & "', Q1Pro = '" & addPro & "', Q2Eng = '" & minusEng & "', Q2Pro = '" & minusPro & "' WHERE Forecast_ID = '" & ID & "' AND Fo_Year = '" & myYear & "'"
set rs = strconn.Execute(sql)
End If
How can i stop the coding from updating my database if either eng or pro = "0" ?

By the way, do you know why this msgBox dosen't work?