Hello fellas...
Can someone point me in the right direction on how to verify that only some fields here are not left blank?.
For this example I only need accnumber and taxid not to be left blank. Any help would be appreciated.
SQL="INSERT INTO vendors (accnumber,company,address1,address2,city,state,zip,paymentdate,terms,vendor1099,taxid) Values ("&_
"'"& request.form("accnumber"& "', " &_
"'"& request.form("company"& "', " &_
"'"& request.form("address1"& "', " &_
"'"& request.form("address2"& "', " &_
"'"& request.form("city"& "', " &_
"'"& request.form("state"& "', " &_
"'"& request.form("zip"& "', " &_
"'"& request.form("paymentdate"& "', " &_
"'"& request.form("terms"& "', " &_
"'"& request.form("vendor1099"& "', " &_
"'"& request.form("taxid"& "')"
Dim RSvendors
set RSvendors=server.createobject("adodb.recordset"
RSvendors.open sql, "dsn=db1"
%>
QUOTE OF THE DAY
Not to know if bad; not to wish to know is worse.
<%
Jr Clown
%>
Can someone point me in the right direction on how to verify that only some fields here are not left blank?.
For this example I only need accnumber and taxid not to be left blank. Any help would be appreciated.
SQL="INSERT INTO vendors (accnumber,company,address1,address2,city,state,zip,paymentdate,terms,vendor1099,taxid) Values ("&_
"'"& request.form("accnumber"& "', " &_
"'"& request.form("company"& "', " &_
"'"& request.form("address1"& "', " &_
"'"& request.form("address2"& "', " &_
"'"& request.form("city"& "', " &_
"'"& request.form("state"& "', " &_
"'"& request.form("zip"& "', " &_
"'"& request.form("paymentdate"& "', " &_
"'"& request.form("terms"& "', " &_
"'"& request.form("vendor1099"& "', " &_
"'"& request.form("taxid"& "')"
Dim RSvendors
set RSvendors=server.createobject("adodb.recordset"
RSvendors.open sql, "dsn=db1"
%>
QUOTE OF THE DAY
Not to know if bad; not to wish to know is worse.
<%
Jr Clown
%>