Can anyone explain why line 9 creates the compile error yet line 6 compiles error-free?
results is a dataset with zero rows then the
while block will never be executed to throw the error.
I thought this wouldn’t be an error until runtime. I get it now though, thanks!
Putting the offending lines in
if results.getRowCount() > 0: works.