I am setting a simple script to not allow a condition. Its set as a Table Pre-Write & it executes when it should, but it returns a Yes/No message box instead of the typical OK warning box. What am I missing or overlooking?

if sTag = "OVERAGE" then
sMsg = "Not allowed to allocate OVERAGE items"
retVal = oScript.SetError(sMsg)
End If
I tried it this way too:
sMsg = "Not allowed to allocate OVERAGE items"
if sTag = "OVERAGE" then
retVal = oScript.SetError(sMsg)
End If
------------------------------
Dana Young
Lehman Wesley & Associates
------------------------------