errorflag = "0"<BR><BR>If IsEmpty((request.form("tdcompany")) or request.form("tdcompany")="") AND errorflag="0" then
If LEN(Request.Form("tdCompany")) = 0 AND ErrorFlag = "0" then<BR>
<BR>Thank, but why not use ifempty ?
IsEmpty returns a Boolean value indicating whether a variable has been initialized.<BR><BR>It has nothing to do with the fact if the user entered something in the textbox. Just check the length with the LEN function as I did in my example.<BR><BR>