I am still trying to replace a NULL or "" in a Numeric field with a Zero
The first part check out it seems
<% pregroup = rs("pregroup")
if pregroup <> "" then
pregroup = pregroup
else
pregroup ="0"
end if
response.write pregroup
%>
The response.write gives me my zero when the field is empty or whatever was in the field if it was not empty
However I then want to insert the Numeric value I have just seen into a form where I am updating all the other fields using
<form method="post" action="lmadmin3.asp?Actionvar=update">
<label for="br_no">BR.Number</label>
<input id="br_no" name="br_no" value=" <% =rs("br_no") %>" />
<br />
<label for="other_no">LMS No.</label>
<input id="other_no" name="other_no" value=" <% =rs("other_no") %>" />
<br />
<label for="pregroup">Pre-Group No.</label>
This next line I cannot get right
<input id="Pregroup" name="Pregroup" />
<br />
I have also tried variations on this attempt
<input id="other_no" name="other_no" value=" <% =rs("other_no") %>"
Some guidence as to what I need here to get the result in the Form so I can see if it has a valid number or is a Zero, and allow an update of the record at the end
Please someone ...

Topshed
