DebbieDavis
Programmer
Hello all. I didn't know how to search for this so please forgive me if it's redundant. I'm pulling information from an orders table into a form for review. If some of the fields are empty, I receive the ugly error '80020009' . This particular one errored on a field called rs("ship_to_name") which is null. There are so many fields, do I have to assign variables for them then do an if statement like this:
or is there another way to avoid the error. I would prefer not to use on error resume next. Thoughts greatly appreciated!
thanks in advance.
Code:
if rs("ship_to_name")>"" then
ship_to_name=rs("ship_to_name")
else
ship_to_name=""
end if
thanks in advance.