Fair enough --
Howabout this, then --
if request.form("accnumber"

= "" then
response.redirect "accnumber.asp?blankField=accnumber"
end if
Then, on the accnumber (which I'm assuming is where they came from in the first place) will be something like this in the first part of the code:
dim blankField, showAlert
blankField = request.querystring("blankField"

if blankField = "accnumber" then
showAlert = 1
else
showAlert = 0
end if
Ok, then down in the head of your html, you'll need to have a little tiny javascript funtion that will pop up the alert box -- (you can do this in vbscript, too, but I'm not sure what the syntax is -- msgbox, maybe??)
It would look like this:
<script language=javascript>
function checkBlanks(){
var showAlert;
showAlert = <%=showAlert%>;
if (showAlert == 1){
alert('The Account Number field can not be blank');
{
}
</script>
Then, you would fire that function with the body onLoad event:
<body onLoad="checkBlanks();">
So that if it's the first time through, then there will be no querystring attached, and therefore no value for the ASP variable, showAlert, and subsequently the alert will not be shown...
If you know how to show client side vbscript alert boxes, then you could write a vbscript subroutine in the same way that I wrote the javascript one, and fire it on the body onLoad -- I just haven't used the client side vbscript, so I wouldn't want to steer you wrong on that one...
The above should work just fine, though --
Furthermore, if you wanted to check several different variables, you could expand the checking mechanism in the request.querystring to fill showAlert with different numbers and then check all those in the javascript function. Basically, you would redirect based on what field was the first one that was found to be blank, send the value (i.e. the blank field name) via querystring back to the accnumber.asp, and then check to see what value was in there in the function:
dim blankField, showAlert
blankField = request.querystring("blankField"

if blankField = "accnumber" then
showAlert = 1
elseif blankField = "theNextOne" then
showAlert = 2
elseif blankField = "theOneAfterThat" then
showAlert = 3
end if
and so on..
Then, your javascript function would look like this:
<script language=javascript>
function checkBlanks(){
var showAlert;
showAlert = <%=showAlert%>;
if (showAlert == 1){
alert('The Account Number field can not be blank');
}
if (showAlert == 2){
alert('The next field cannot be left blank');
{
if (showAlert == 3){
alert('The field after that cannot be left blank');
}
}
</script>
Gee, what a mouthful.
I really hope this gets you going in the right direction.
Let me know --

Paul Prewett