Code:
So are you saying that this code covers both null and blank?
if trim(objrs ("field1") & " ")="" then
If the answer is yes, then back to the original question about not having to repeat the code below. Is there an easier way rather than having to list each one? Can you do a between Field1 - Field2:
Code:
if isnull (objrs ("FIELD1")) or objrs("FIELD1") = "" and isnull (objrs ("FIELD2")) or objrs("FIELD2") = "" and isnull (objrs ("FIELD3")) or objrs("FIELD3") = "" and isnull (objrs ("FIELD4")) or objrs("FIELD4") = "" and isnull (objrs ("FIELD5")) or objrs("FIELD5") = "" and isnull (objrs ("FIELD6")) or objrs("FIELD6") = "" and isnull (objrs ("FIELD7")) or objrs("FIELD7") = "" and isnull (objrs ("FIELD8")) or objrs("FIELD8") = "" and isnull (objrs ("FIELD9")) or objrs("FIELD9") = "" and isnull (objrs ("FIELD10")) or objrs("FIELD10") = "" then