Ah problem is that there may be as many as 4 lines converging all with different elevations due to different pipe inverts. So, the line needs to only reference itself - display the current elevation at that end, let me default and move on to other end and enter or default as necessary.
It might be good if it did as you have written and picked up on the adjacent invert but still let me override if the actual invert is different.
Is that possible? I really need to learn this stuff...